tor-browser

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

S11.8.7_A2.1_T2.js (615B)


      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: Operator "in" uses GetValue
      6 es5id: 11.8.7_A2.1_T2
      7 description: If GetBase(RelationalExpression) is null, throw ReferenceError
      8 ---*/
      9 
     10 //CHECK#1
     11 try {
     12  MAX_VALUE in Number;
     13  throw new Test262Error('#1.1: MAX_VALUE in Number throw ReferenceError. Actual: ' + (MAX_VALUE in Number));  
     14 }
     15 catch (e) {
     16  if ((e instanceof ReferenceError) !== true) {
     17    throw new Test262Error('#1.2: MAX_VALUE in Number throw ReferenceError. Actual: ' + (e));  
     18  }
     19 }
     20 
     21 reportCompare(0, 0);