Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Global object has properties such as built-in objects such as
6 * Math, String, Date, parseInt, etc
7 *
8 * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js
9 * @description Eval execution context - Constructor Properties
10 */
12 var evalStr =
13 '//CHECK#13\n'+
14 'if ( Object === null ) {\n'+
15 ' $ERROR("#13: Object === null");\n'+
16 '}\n'+
18 '//CHECK#14\n'+
19 'if ( Function === null ) {\n'+
20 ' $ERROR("#14: Function === null");\n'+
21 '}\n'+
23 '//CHECK#15\n'+
24 'if ( String === null ) {\n'+
25 ' $ERROR("#15: String === null");\n'+
26 '}\n'+
28 '//CHECK#16\n'+
29 'if ( Number === null ) {\n'+
30 ' $ERROR("#16: Function === null");\n'+
31 '}\n'+
33 '//CHECK#17\n'+
34 'if ( Array === null ) {\n'+
35 ' $ERROR("#17: Array === null");\n'+
36 '}\n'+
38 '//CHECK#18\n'+
39 'if ( Boolean === null ) {\n'+
40 ' $ERROR("#20: Boolean === null");\n'+
41 '}\n'+
43 '//CHECK#18\n'+
44 'if ( Date === null ) {\n'+
45 ' $ERROR("#18: Date === null");\n'+
46 '}\n'+
48 '//CHECK#19\n'+
49 'if ( RegExp === null ) {\n'+
50 ' $ERROR("#19: RegExp === null");\n'+
51 '}\n'+
53 '//CHECK#20\n'+
54 'if ( Error === null ) {\n'+
55 ' $ERROR("#20: Error === null");\n'+
56 '}\n'+
58 '//CHECK#21\n'+
59 'if ( EvalError === null ) {\n'+
60 ' $ERROR("#21: EvalError === null");\n'+
61 '}\n'+
63 '//CHECK#22\n'+
64 'if ( RangeError === null ) {\n'+
65 ' $ERROR("#22: RangeError === null");\n'+
66 '}\n'+
68 '//CHECK#23\n'+
69 'if ( ReferenceError === null ) {\n'+
70 ' $ERROR("#23: ReferenceError === null");\n'+
71 '}\n'+
73 '//CHECK#24\n'+
74 'if ( SyntaxError === null ) {\n'+
75 ' $ERROR("#24: SyntaxError === null");\n'+
76 '}\n'+
78 '//CHECK#25\n'+
79 'if ( TypeError === null ) {\n'+
80 ' $ERROR("#25: TypeError === null");\n'+
81 '}\n'+
83 '//CHECK#26\n'+
84 'if ( URIError === null ) {\n'+
85 ' $ERROR("#26: URIError === null");\n'+
86 '}\n'+
87 ';\n';
89 eval(evalStr);