tor-browser

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

15.2.3.14-2-3.js (435B)


      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.14-2-3
      6 description: Object.keys returns the standard built-in Array (Array overridden)
      7 ---*/
      8 
      9 function Array() {}
     10 
     11 var o = {
     12  x: 1,
     13  y: 2
     14 };
     15 
     16 var a = Object.keys(o);
     17 
     18 var s = Object.prototype.toString.call(a);
     19 
     20 assert.sameValue(s, '[object Array]', 's');
     21 
     22 reportCompare(0, 0);