Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/global/S10.2.3_A2.2_T2.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.2_T2
7 description: Function execution context - Function Properties
8 flags: [noStrict]
9 ---*/
10
11 function test() {
12 //CHECK#1
13 for (var x in this) {
14 if (x === 'eval') {
15 $ERROR("#1: 'eval' have attribute DontEnum");
16 } else if (x === 'parseInt') {
17 $ERROR("#1: 'parseInt' have attribute DontEnum");
18 } else if (x === 'parseFloat') {
19 $ERROR("#1: 'parseFloat' have attribute DontEnum");
20 } else if (x === 'isNaN') {
21 $ERROR("#1: 'isNaN' have attribute DontEnum");
22 } else if (x === 'isFinite') {
23 $ERROR("#1: 'isFinite' have attribute DontEnum");
24 } else if (x === 'decodeURI') {
25 $ERROR("#1: 'decodeURI' have attribute DontEnum");
26 } else if (x === 'decodeURIComponent') {
27 $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
28 } else if (x === 'encodeURI') {
29 $ERROR("#1: 'encodeURI' have attribute DontEnum");
30 } else if (x === 'encodeURIComponent') {
31 $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
32 }
33 }
34 }
35
36 test();