michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Global object has properties such as built-in objects such as michael@0: * Math, String, Date, parseInt, etc michael@0: * michael@0: * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js michael@0: * @description Eval execution context - Value Properties michael@0: */ michael@0: michael@0: var evalStr = michael@0: '//CHECK#1\n'+ michael@0: 'if ( NaN === null ) {\n'+ michael@0: ' $ERROR("#1: NaN === null");\n'+ michael@0: '}\n'+ michael@0: michael@0: '//CHECK#2\n'+ michael@0: 'if ( Infinity === null ) {\n'+ michael@0: ' $ERROR("#2: Infinity === null");\n'+ michael@0: '}\n'+ michael@0: michael@0: '//CHECK#3\n'+ michael@0: 'if ( undefined === null ) {\n'+ michael@0: ' $ERROR("#3: undefined === null");\n'+ michael@0: '}\n'+ michael@0: ';\n'; michael@0: michael@0: eval(evalStr); michael@0: