tor-browser

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

S11.12_A2.1_T4.js (626B)


      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 x ? y : z uses GetValue"
      6 es5id: 11.12_A2.1_T4
      7 description: >
      8    If ToBoolean(x) is false and GetBase(z) is null, throw
      9    ReferenceError
     10 ---*/
     11 
     12 //CHECK#1
     13 try {
     14  false ? true : z;
     15  throw new Test262Error('#1.1: false ? true : z throw ReferenceError. Actual: ' + (false ? true : z));  
     16 }
     17 catch (e) {
     18  if ((e instanceof ReferenceError) !== true) {
     19    throw new Test262Error('#1.2: false ? true : z throw ReferenceError. Actual: ' + (e));  
     20  }
     21 }
     22 
     23 reportCompare(0, 0);