| 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.3_T1 |
| 7 |
description: Global execution context - Value Properties |
| 8 |
---*/ |
| 9 |
|
| 10 |
var evalStr = |
| 11 |
'//CHECK#1\n'+ |
| 12 |
'for (var x in this) {\n'+ |
| 13 |
' if ( x === \'NaN\' ) {\n'+ |
| 14 |
' $ERROR("#1: \'NaN\' have attribute DontEnum");\n'+ |
| 15 |
' } else if ( x === \'Infinity\' ) {\n'+ |
| 16 |
' $ERROR("#1: \'Infinity\' have attribute DontEnum");\n'+ |
| 17 |
' } else if ( x === \'undefined\' ) {\n'+ |
| 18 |
' $ERROR("#1: \'undefined\' have attribute DontEnum");\n'+ |
| 19 |
' }\n'+ |
| 20 |
'}\n'; |
| 21 |
|
| 22 |
eval(evalStr); |