Debian Codegraph @

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