tor-browser

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

S10.2.3_A1.2_T3.js (1870B)


      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: |
      6    Global object has properties such as built-in objects such as
      7    Math, String, Date, parseInt, etc
      8 es5id: 10.2.3_A1.2_T3
      9 description: Function execution context - Constructor Properties
     10 ---*/
     11 
     12 function test() {
     13  //CHECK#13
     14  if (Object === null) {
     15    throw new Test262Error("#13: Object === null");
     16  }
     17 
     18  //CHECK#14
     19  if (Function === null) {
     20    throw new Test262Error("#14: Function === null");
     21  }
     22 
     23  //CHECK#15
     24  if (String === null) {
     25    throw new Test262Error("#15: String === null");
     26  }
     27 
     28  //CHECK#16
     29  if (Number === null) {
     30    throw new Test262Error("#16: Function === null");
     31  }
     32 
     33  //CHECK#17
     34  if (Array === null) {
     35    throw new Test262Error("#17: Array === null");
     36  }
     37 
     38  //CHECK#18
     39  if (Boolean === null) {
     40    throw new Test262Error("#20: Boolean === null");
     41  }
     42 
     43  //CHECK#18
     44  if (Date === null) {
     45    throw new Test262Error("#18: Date === null");
     46  }
     47 
     48  //CHECK#19
     49  if (RegExp === null) {
     50    throw new Test262Error("#19: RegExp === null");
     51  }
     52 
     53  //CHECK#20
     54  if (Error === null) {
     55    throw new Test262Error("#20: Error === null");
     56  }
     57 
     58  //CHECK#21
     59  if (EvalError === null) {
     60    throw new Test262Error("#21: EvalError === null");
     61  }
     62 
     63  //CHECK#22
     64  if (RangeError === null) {
     65    throw new Test262Error("#22: RangeError === null");
     66  }
     67 
     68  //CHECK#23
     69  if (ReferenceError === null) {
     70    throw new Test262Error("#23: ReferenceError === null");
     71  }
     72 
     73  //CHECK#24
     74  if (SyntaxError === null) {
     75    throw new Test262Error("#24: SyntaxError === null");
     76  }
     77 
     78  //CHECK#25
     79  if (TypeError === null) {
     80    throw new Test262Error("#25: TypeError === null");
     81  }
     82 
     83  //CHECK#26
     84  if (URIError === null) {
     85    throw new Test262Error("#26: URIError === null");
     86  }
     87 }
     88 
     89 test();
     90 
     91 reportCompare(0, 0);