Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/S10.2.3_A2.1_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.1_T4
7 description: Global execution context - Other Properties
8 ---*/
9
10 //CHECK#1
11 for (var x in this) {
12 if (x === 'Math') {
13 $ERROR("#1: 'Math' have attribute DontEnum");
14 }
15 }