S15.1.3.4_A5.3.js (699B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: The length property of encodeURIComponent has the attribute ReadOnly 6 esid: sec-encodeuricomponent-uricomponent 7 description: Checking if varying the length property fails 8 includes: [propertyHelper.js] 9 ---*/ 10 11 //CHECK#1 12 var x = encodeURIComponent.length; 13 verifyNotWritable(encodeURIComponent, "length", null, Infinity); 14 if (encodeURIComponent.length !== x) { 15 throw new Test262Error('#1: x = encodeURIComponent.length; encodeURIComponent.length = Infinity; encodeURIComponent.length === x. Actual: ' + (encodeURIComponent.length)); 16 } 17 18 reportCompare(0, 0);