tor-browser

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

15.2.3.6-4-94.js (755B)


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