tor-browser

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

15.2.3.6-4-71.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.6-4-71
      6 description: >
      7    Object.defineProperty - both desc.value and name.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 
     19 Object.defineProperty(obj, "foo", {
     20  value: obj1
     21 });
     22 
     23 Object.defineProperty(obj, "foo", {
     24  value: obj1
     25 });
     26 
     27 verifyProperty(obj, "foo", {
     28  value: obj1,
     29  writable: false,
     30  enumerable: false,
     31  configurable: false,
     32 });
     33 
     34 reportCompare(0, 0);