summaryrefslogtreecommitdiff
path: root/test/built-ins/global/S10.2.3_A1.3_T3.js
blob: b5fdc2cb232658b96e45a7d7ee8282648eeae795 (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
// 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' +
  '  $ERROR("#13: Object === null");\n' +
  '}\n' +

  '//CHECK#14\n' +
  'if ( Function === null ) {\n' +
  '  $ERROR("#14: Function === null");\n' +
  '}\n' +

  '//CHECK#15\n' +
  'if ( String === null ) {\n' +
  '  $ERROR("#15: String === null");\n' +
  '}\n' +

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

  '//CHECK#17\n' +
  'if ( Array === null ) {\n' +
  '  $ERROR("#17: Array === null");\n' +
  '}\n' +

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

  '//CHECK#18\n' +
  'if ( Date === null ) {\n' +
  '  $ERROR("#18: Date === null");\n' +
  '}\n' +

  '//CHECK#19\n' +
  'if ( RegExp === null ) {\n' +
  '  $ERROR("#19: RegExp === null");\n' +
  '}\n' +

  '//CHECK#20\n' +
  'if ( Error === null ) {\n' +
  '  $ERROR("#20: Error === null");\n' +
  '}\n' +

  '//CHECK#21\n' +
  'if ( EvalError === null ) {\n' +
  '  $ERROR("#21: EvalError === null");\n' +
  '}\n' +

  '//CHECK#22\n' +
  'if ( RangeError === null ) {\n' +
  '  $ERROR("#22: RangeError === null");\n' +
  '}\n' +

  '//CHECK#23\n' +
  'if ( ReferenceError === null ) {\n' +
  '  $ERROR("#23: ReferenceError === null");\n' +
  '}\n' +

  '//CHECK#24\n' +
  'if ( SyntaxError === null ) {\n' +
  '  $ERROR("#24: SyntaxError === null");\n' +
  '}\n' +

  '//CHECK#25\n' +
  'if ( TypeError === null ) {\n' +
  '  $ERROR("#25: TypeError === null");\n' +
  '}\n' +

  '//CHECK#26\n' +
  'if ( URIError === null ) {\n' +
  '  $ERROR("#26: URIError === null");\n' +
  '}\n' +
  ';\n';

eval(evalStr);