S15.1.3.3_A5.3.js (609B)
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 encodeURI has the attribute ReadOnly 6 esid: sec-encodeuri-uri 7 description: Checking if varying the length property fails 8 includes: [propertyHelper.js] 9 ---*/ 10 11 //CHECK#1 12 var x = encodeURI.length; 13 verifyNotWritable(encodeURI, "length", null, Infinity); 14 if (encodeURI.length !== x) { 15 throw new Test262Error('#1: x = encodeURI.length; encodeURI.length = Infinity; encodeURI.length === x. Actual: ' + (encodeURI.length)); 16 } 17 18 reportCompare(0, 0);