tor-browser

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

15.2.3.7-6-a-53.js (653B)


      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-6-a-53
      6 description: >
      7    Object.defineProperties - both desc.value and P.value are Ojbects
      8    which refer to the same Object (8.12.9 step 6)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 var obj1 = {
     16  length: 10
     17 };
     18 var desc = {
     19  value: obj1
     20 };
     21 Object.defineProperty(obj, "foo", desc);
     22 
     23 Object.defineProperties(obj, {
     24  foo: {
     25    value: obj1
     26  }
     27 });
     28 
     29 verifyProperty(obj, "foo", {
     30  value: obj1,
     31  writable: false,
     32  enumerable: false,
     33  configurable: false,
     34 });
     35 
     36 reportCompare(0, 0);