tor-browser

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

S10.2.3_A2.1_T1.js (639B)


      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_T1
      7 description: Global execution context - Value Properties
      8 ---*/
      9 
     10 //CHECK#1
     11 for (var x in this) {
     12  if (x === 'NaN') {
     13    throw new Test262Error("#1: 'NaN' have attribute DontEnum");
     14  } else if (x === 'Infinity') {
     15    throw new Test262Error("#1: 'Infinity' have attribute DontEnum");
     16  } else if (x === 'undefined') {
     17    throw new Test262Error("#1: 'undefined' have attribute DontEnum");
     18  }
     19 }
     20 
     21 reportCompare(0, 0);