S10.2.3_A2.1_T3.js (1887B)
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_T3 7 description: Global execution context - Constructor Properties 8 ---*/ 9 10 //CHECK#1 11 for (var x in this) { 12 if (x === 'Object') { 13 throw new Test262Error("#1: 'property 'Object' have attribute DontEnum"); 14 } else if (x === 'Function') { 15 throw new Test262Error("#1: 'Function' have attribute DontEnum"); 16 } else if (x === 'String') { 17 throw new Test262Error("#1: 'String' have attribute DontEnum"); 18 } else if (x === 'Number') { 19 throw new Test262Error("#1: 'Number' have attribute DontEnum"); 20 } else if (x === 'Array') { 21 throw new Test262Error("#1: 'Array' have attribute DontEnum"); 22 } else if (x === 'Boolean') { 23 throw new Test262Error("#1: 'Boolean' have attribute DontEnum"); 24 } else if (x === 'Date') { 25 throw new Test262Error("#1: 'Date' have attribute DontEnum"); 26 } else if (x === 'RegExp') { 27 throw new Test262Error("#1: 'RegExp' have attribute DontEnum"); 28 } else if (x === 'Error') { 29 throw new Test262Error("#1: 'Error' have attribute DontEnum"); 30 } else if (x === 'EvalError') { 31 throw new Test262Error("#1: 'EvalError' have attribute DontEnum"); 32 } else if (x === 'RangeError') { 33 throw new Test262Error("#1: 'RangeError' have attribute DontEnum"); 34 } else if (x === 'ReferenceError') { 35 throw new Test262Error("#1: 'ReferenceError' have attribute DontEnum"); 36 } else if (x === 'SyntaxError') { 37 throw new Test262Error("#1: 'SyntaxError' have attribute DontEnum"); 38 } else if (x === 'TypeError') { 39 throw new Test262Error("#1: 'TypeError' have attribute DontEnum"); 40 } else if (x === 'URIError') { 41 throw new Test262Error("#1: 'URIError' have attribute DontEnum"); 42 } 43 } 44 45 reportCompare(0, 0);