S10.2.3_A2.1_T2.js (1302B)
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: Global object properties have attributes { DontEnum } 6 es5id: 10.2.3_A2.1_T2 7 description: Global execution context - Function Properties 8 ---*/ 9 10 //CHECK#1 11 for (var x in this) { 12 if (x === 'eval') { 13 throw new Test262Error("#1: 'eval' have attribute DontEnum"); 14 } else if (x === 'parseInt') { 15 throw new Test262Error("#1: 'parseInt' have attribute DontEnum"); 16 } else if (x === 'parseFloat') { 17 throw new Test262Error("#1: 'parseFloat' have attribute DontEnum"); 18 } else if (x === 'isNaN') { 19 throw new Test262Error("#1: 'isNaN' have attribute DontEnum"); 20 } else if (x === 'isFinite') { 21 throw new Test262Error("#1: 'isFinite' have attribute DontEnum"); 22 } else if (x === 'decodeURI') { 23 throw new Test262Error("#1: 'decodeURI' have attribute DontEnum"); 24 } else if (x === 'decodeURIComponent') { 25 throw new Test262Error("#1: 'decodeURIComponent' have attribute DontEnum"); 26 } else if (x === 'encodeURI') { 27 throw new Test262Error("#1: 'encodeURI' have attribute DontEnum"); 28 } else if (x === 'encodeURIComponent') { 29 throw new Test262Error("#1: 'encodeURIComponent' have attribute DontEnum"); 30 } 31 } 32 33 reportCompare(0, 0);