tor-browser

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

15.2.3.7-3-6.js (644B)


      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.7-3-6
      6 description: >
      7    Object.defineProperties - enumerable inherited accessor property
      8    of 'Properties' is not defined in 'O'
      9 ---*/
     10 
     11 var obj = {};
     12 var proto = {};
     13 
     14 Object.defineProperty(proto, "prop", {
     15  get: function() {
     16    return {};
     17  },
     18  enumerable: true
     19 });
     20 
     21 var Con = function() {};
     22 Con.prototype = proto;
     23 var child = new Con();
     24 
     25 Object.defineProperties(obj, child);
     26 
     27 assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');
     28 
     29 reportCompare(0, 0);