| 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 |
$ERROR("#4: eval === null"); |
| 16 |
} |
| 17 |
|
| 18 |
//CHECK#5 |
| 19 |
if (parseInt === null) { |
| 20 |
$ERROR("#5: parseInt === null"); |
| 21 |
} |
| 22 |
|
| 23 |
//CHECK#6 |
| 24 |
if (parseFloat === null) { |
| 25 |
$ERROR("#6: parseFloat === null"); |
| 26 |
} |
| 27 |
|
| 28 |
//CHECK#7 |
| 29 |
if (isNaN === null) { |
| 30 |
$ERROR("#7: isNaN === null"); |
| 31 |
} |
| 32 |
|
| 33 |
//CHECK#8 |
| 34 |
if (isFinite === null) { |
| 35 |
$ERROR("#8: isFinite === null"); |
| 36 |
} |
| 37 |
|
| 38 |
//CHECK#9 |
| 39 |
if (decodeURI === null) { |
| 40 |
$ERROR("#9: decodeURI === null"); |
| 41 |
} |
| 42 |
|
| 43 |
//CHECK#10 |
| 44 |
if (decodeURIComponent === null) { |
| 45 |
$ERROR("#10: decodeURIComponent === null"); |
| 46 |
} |
| 47 |
|
| 48 |
//CHECK#11 |
| 49 |
if (encodeURI === null) { |
| 50 |
$ERROR("#11: encodeURI === null"); |
| 51 |
} |
| 52 |
|
| 53 |
//CHECK#12 |
| 54 |
if (encodeURIComponent === null) { |
| 55 |
$ERROR("#12: encodeURIComponent === null"); |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
test(); |