tor-browser

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

S11.8.6_A2.1_T1.js (930B)


      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 "instanceof" uses GetValue
      6 es5id: 11.8.6_A2.1_T1
      7 description: Either Expression is not Reference or GetBase is not null
      8 ---*/
      9 
     10 //CHECK#1
     11 if (({}) instanceof Object !== true) {
     12  throw new Test262Error('#1: ({}) instanceof Object === true');
     13 }
     14 
     15 //CHECK#2
     16 var object = {};
     17 if (object instanceof Object !== true) {
     18  throw new Test262Error('#2: var object = {}; object instanceof Object === true');
     19 }
     20 
     21 //CHECK#3
     22 var OBJECT = Object;
     23 if (({}) instanceof OBJECT !== true) {
     24  throw new Test262Error('#3: var OBJECT = Object; ({}) instanceof OBJECT === true');
     25 }
     26 
     27 //CHECK#4
     28 var object = {};
     29 var OBJECT = Object;
     30 if (object instanceof OBJECT !== true) {
     31  throw new Test262Error('#4: var object = {}; var OBJECT = Object; object instanceof OBJECT === true');
     32 }
     33 
     34 reportCompare(0, 0);