tor-browser

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

S11.9.5_A8_T4.js (1594B)


      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: If Type(x) is different from Type(y), return true
      6 es5id: 11.9.5_A8_T4
      7 description: x or y is null or undefined
      8 ---*/
      9 
     10 //CHECK#1
     11 if (!(undefined !== null)) {
     12  throw new Test262Error('#1: undefined !== null');
     13 }
     14 
     15 //CHECK#2
     16 if (!(null !== undefined)) {
     17  throw new Test262Error('#2: null !== undefined');
     18 }
     19 
     20 //CHECK#3
     21 if (!(null !== 0)) {
     22  throw new Test262Error('#3: null !== 0');
     23 }
     24 
     25 //CHECK#4
     26 if (!(0 !== null)) {
     27  throw new Test262Error('#4: 0 !== null');
     28 }
     29 
     30 //CHECK#5
     31 if (!(null !== false)) {
     32  throw new Test262Error('#5: null !== false');
     33 }
     34 
     35 //CHECK#6
     36 if (!(false !== null)) {
     37  throw new Test262Error('#6: false !== null');
     38 }
     39 
     40 //CHECK#7
     41 if (!(undefined !== false)) {
     42  throw new Test262Error('#7: undefined !== false');
     43 }
     44 
     45 //CHECK#8
     46 if (!(false !== undefined)) {
     47  throw new Test262Error('#8: false !== undefined');
     48 }
     49 
     50 //CHECK#9
     51 if (!(null !== new Object())) {
     52  throw new Test262Error('#9: null !== new Object()');
     53 }
     54 
     55 //CHECK#10
     56 if (!(new Object() !== null)) {
     57  throw new Test262Error('#10: new Object() !== null');
     58 }
     59 
     60 //CHECK#11
     61 if (!(null !== "null")) {
     62  throw new Test262Error('#11: null !== "null"');
     63 }
     64 
     65 //CHECK#12
     66 if (!("null" !== null)) {
     67  throw new Test262Error('#12: "null" !== null');
     68 }
     69 
     70 //CHECK#13
     71 if (!(undefined !== "undefined")) {
     72  throw new Test262Error('#13: undefined !== "undefined"');
     73 }
     74 
     75 //CHECK#14
     76 if (!("undefined" !== undefined)) {
     77  throw new Test262Error('#14: "undefined" !== undefined');
     78 }
     79 
     80 reportCompare(0, 0);