Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/S10.2.3_A2.3_T4.js

raw
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_T4
7 description: Global execution context - Other Properties
8 ---*/
9
10 var evalStr =
11 '//CHECK#1\n'+
12 'for (var x in this) {\n'+
13 ' if ( x === \'Math\' ) {\n'+
14 ' $ERROR("#1: \'Math\' have attribute DontEnum");\n'+
15 ' }\n'+
16 '}\n';
17
18 eval(evalStr);