tor-browser

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

S10.2.3_A1.1_T2.js (1202B)


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