Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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_T2.js
9 * @description Eval execution context - Function Properties
10 */
12 var evalStr =
13 '//CHECK#4\n'+
14 'if ( eval === null ) {\n'+
15 ' $ERROR("#4: eval === null");\n'+
16 '}\n'+
18 '//CHECK#5\n'+
19 'if ( parseInt === null ) {\n'+
20 ' $ERROR("#5: parseInt === null");\n'+
21 '}\n'+
23 '//CHECK#6\n'+
24 'if ( parseFloat === null ) {\n'+
25 ' $ERROR("#6: parseFloat === null");\n'+
26 '}\n'+
28 '//CHECK#7\n'+
29 'if ( isNaN === null ) {\n'+
30 ' $ERROR("#7: isNaN === null");\n'+
31 '}\n'+
33 '//CHECK#8\n'+
34 'if ( isFinite === null ) {\n'+
35 ' $ERROR("#8: isFinite === null");\n'+
36 '}\n'+
38 '//CHECK#9\n'+
39 'if ( decodeURI === null ) {\n'+
40 ' $ERROR("#9: decodeURI === null");\n'+
41 '}\n'+
43 '//CHECK#10\n'+
44 'if ( decodeURIComponent === null ) {\n'+
45 ' $ERROR("#10: decodeURIComponent === null");\n'+
46 '}\n'+
48 '//CHECK#11\n'+
49 'if ( encodeURI === null ) {\n'+
50 ' $ERROR("#11: encodeURI === null");\n'+
51 '}\n'+
53 '//CHECK#12\n'+
54 'if ( encodeURIComponent === null ) {\n'+
55 ' $ERROR("#12: encodeURIComponent === null");\n'+
56 '}\n'+
57 ';\n';
59 eval(evalStr);