tor-browser

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

15.2.3.6-4-96.js (770B)


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