js/src/tests/test262/ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:9d4d7592b582
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 * Global object properties have attributes { DontEnum }
6 *
7 * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js
8 * @description Global execution context - Value Properties
9 */
10
11 var evalStr =
12 '//CHECK#1\n'+
13 'for (var x in this) {\n'+
14 ' if ( x === \'NaN\' ) {\n'+
15 ' $ERROR("#1: \'NaN\' have attribute DontEnum");\n'+
16 ' } else if ( x === \'Infinity\' ) {\n'+
17 ' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n'+
18 ' } else if ( x === \'undefined\' ) {\n'+
19 ' $ERROR("#1: \'undefined\' have attribute DontEnum");\n'+
20 ' }\n'+
21 '}\n';
22
23 eval(evalStr);
24

mercurial