tor-browser

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

15.2.3.4-2-4.js (575B)


      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-2-4
      6 description: >
      7    Object.getOwnPropertyNames - returned array is the standard
      8    built-in constructor
      9 ---*/
     10 
     11 var oldArray = Array;
     12 Array = function() {
     13  throw new Error("invoke customer defined Array!");
     14 };
     15 
     16 var obj = {};
     17 
     18 var result = Object.getOwnPropertyNames(obj);
     19 
     20 assert.sameValue(Object.prototype.toString.call(result), "[object Array]", 'Object.prototype.toString.call(result)');
     21 
     22 reportCompare(0, 0);