summaryrefslogtreecommitdiff
path: root/test/built-ins/global/S10.2.3_A2.2_T4.js
blob: 4c61acec8c11d33eb23ae44f42fc3cf39a1f5456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: Global object properties have attributes { DontEnum }
es5id: 10.2.3_A2.2_T4
description: Function execution context - Other Properties
flags: [noStrict]
---*/

function test() {
  //CHECK#1
  for (var x in this) {
    if (x === 'Math') {
      $ERROR("#1: 'Math' have attribute DontEnum");
    }
  }
}

test();