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