summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/global/S10.2.3_A1.3_T3.js
blob: a06365de581c2977cefaf13cabd65aa354055903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
    Global object has properties such as built-in objects such as
    Math, String, Date, parseInt, etc
es5id: 10.2.3_A1.3_T3
description: Eval execution context - Constructor Properties
---*/

var evalStr =
'//CHECK#13\n'+
'if ( Object === null ) {\n'+
'  throw new Test262Error("#13: Object === null");\n'+
'}\n'+

'//CHECK#14\n'+
'if ( Function === null ) {\n'+
'  throw new Test262Error("#14: Function === null");\n'+
'}\n'+

'//CHECK#15\n'+
'if ( String === null ) {\n'+
'  throw new Test262Error("#15: String === null");\n'+
'}\n'+

'//CHECK#16\n'+
'if ( Number === null ) {\n'+
'  throw new Test262Error("#16: Function === null");\n'+
'}\n'+

'//CHECK#17\n'+
'if ( Array === null ) {\n'+
'  throw new Test262Error("#17: Array === null");\n'+
'}\n'+

'//CHECK#18\n'+
'if ( Boolean === null ) {\n'+
'  throw new Test262Error("#20: Boolean === null");\n'+
'}\n'+

'//CHECK#18\n'+
'if ( Date === null ) {\n'+
'  throw new Test262Error("#18: Date === null");\n'+
'}\n'+

'//CHECK#19\n'+
'if ( RegExp === null ) {\n'+
'  throw new Test262Error("#19: RegExp === null");\n'+
'}\n'+

'//CHECK#20\n'+
'if ( Error === null ) {\n'+
'  throw new Test262Error("#20: Error === null");\n'+
'}\n'+

'//CHECK#21\n'+
'if ( EvalError === null ) {\n'+
'  throw new Test262Error("#21: EvalError === null");\n'+
'}\n'+

'//CHECK#22\n'+
'if ( RangeError === null ) {\n'+
'  throw new Test262Error("#22: RangeError === null");\n'+
'}\n'+

'//CHECK#23\n'+
'if ( ReferenceError === null ) {\n'+
'  throw new Test262Error("#23: ReferenceError === null");\n'+
'}\n'+

'//CHECK#24\n'+
'if ( SyntaxError === null ) {\n'+
'  throw new Test262Error("#24: SyntaxError === null");\n'+
'}\n'+

'//CHECK#25\n'+
'if ( TypeError === null ) {\n'+
'  throw new Test262Error("#25: TypeError === null");\n'+
'}\n'+

'//CHECK#26\n'+
'if ( URIError === null ) {\n'+
'  throw new Test262Error("#26: URIError === null");\n'+
'}\n'+
';\n';

eval(evalStr);

reportCompare(0, 0);