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