tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S10.2.3_A2.3_T4.js (499B)


      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.3_T4
      7 description: Global execution context - Other Properties
      8 ---*/
      9 
     10 var evalStr =
     11 '//CHECK#1\n'+
     12 'for (var x in this) {\n'+
     13 '  if ( x === \'Math\' ) {\n'+
     14 '    throw new Test262Error("#1: \'Math\' have attribute DontEnum");\n'+
     15 '  }\n'+
     16 '}\n';
     17 
     18 eval(evalStr);
     19 
     20 reportCompare(0, 0);