tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S10.2.3_A1.3_T2.js (1435B)


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