Debian Codegraph @

js/src/tests/test262/built-ins/global/S10.2.3_A1.2_T2.js

raw
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_T2
9 description: Function execution context - Function Properties
10 ---*/
11
12 function test() {
13 //CHECK#4
14 if (eval === null) {
15 throw new Test262Error("#4: eval === null");
16 }
17
18 //CHECK#5
19 if (parseInt === null) {
20 throw new Test262Error("#5: parseInt === null");
21 }
22
23 //CHECK#6
24 if (parseFloat === null) {
25 throw new Test262Error("#6: parseFloat === null");
26 }
27
28 //CHECK#7
29 if (isNaN === null) {
30 throw new Test262Error("#7: isNaN === null");
31 }
32
33 //CHECK#8
34 if (isFinite === null) {
35 throw new Test262Error("#8: isFinite === null");
36 }
37
38 //CHECK#9
39 if (decodeURI === null) {
40 throw new Test262Error("#9: decodeURI === null");
41 }
42
43 //CHECK#10
44 if (decodeURIComponent === null) {
45 throw new Test262Error("#10: decodeURIComponent === null");
46 }
47
48 //CHECK#11
49 if (encodeURI === null) {
50 throw new Test262Error("#11: encodeURI === null");
51 }
52
53 //CHECK#12
54 if (encodeURIComponent === null) {
55 throw new Test262Error("#12: encodeURIComponent === null");
56 }
57 }
58
59 test();
60
61 reportCompare(0, 0);