tor-browser

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

15.2.3.14-5-5.js (626B)


      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-5-5
      6 description: >
      7    Object.keys - inherited enumerable data property of 'O' is not
      8    defined in returned array
      9 ---*/
     10 
     11 var proto = {};
     12 Object.defineProperty(proto, "inheritedProp", {
     13  value: 1003,
     14  enumerable: true,
     15  configurable: true
     16 });
     17 var Con = function() {};
     18 Con.prototype = proto;
     19 
     20 var obj = new Con();
     21 obj.prop = 1004;
     22 
     23 var arr = Object.keys(obj);
     24 
     25 for (var p in arr) {
     26  assert.notSameValue(arr[p], "inheritedProp", 'arr[p]');
     27 }
     28 
     29 reportCompare(0, 0);