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-86.js (789B)


      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-86
      6 description: >
      7    Object.defineProperties will not throw TypeError when
      8    P.configurable is false, both properties.[[Set]] and P.[[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 set_func(value) {
     17  obj.setVerifyHelpProp = value;
     18 }
     19 
     20 Object.defineProperty(obj, "foo", {
     21  set: set_func,
     22  configurable: false
     23 });
     24 
     25 Object.defineProperties(obj, {
     26  foo: {
     27    set: set_func
     28  }
     29 });
     30 verifyWritable(obj, "foo", "setVerifyHelpProp");
     31 
     32 verifyProperty(obj, "foo", {
     33  enumerable: false,
     34  configurable: false,
     35 });
     36 
     37 
     38 reportCompare(0, 0);