tor-browser

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

15.2.3.4-4-1.js (866B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 15.2.3.4-4-1
      6 description: Object.getOwnPropertyNames returns array of property names (Global)
      7 ---*/
      8 
      9 var result = Object.getOwnPropertyNames(this);
     10 var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"];
     11 
     12 var result1 = {};
     13 for (var p in result) {
     14  result1[result[p]] = true;
     15 }
     16 
     17 for (var p1 in expResult) {
     18  assert(result1[expResult[p1]], 'result1[expResult[p1]] !== true');
     19 }
     20 
     21 reportCompare(0, 0);