michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Global object properties have attributes { DontEnum } michael@0: * michael@0: * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js michael@0: * @description Global execution context - Other Properties michael@0: */ michael@0: michael@0: var evalStr = michael@0: '//CHECK#1\n'+ michael@0: 'for (var x in this) {\n'+ michael@0: ' if ( x === \'Math\' ) {\n'+ michael@0: ' $ERROR("#1: \'Math\' have attribute DontEnum");\n'+ michael@0: ' }\n'+ michael@0: '}\n'; michael@0: michael@0: eval(evalStr); michael@0: