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-60.js (747B)


      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-60
      6 description: >
      7    Object.defineProperties - desc.[[Set]] and P.[[Set]] are two
      8    objects which refer to the different objects (8.12.9 step 6)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 function set_func1() {}
     16 
     17 Object.defineProperty(obj, "foo", {
     18  set: set_func1,
     19  configurable: true
     20 });
     21 
     22 function set_func2(value) {
     23  obj.setVerifyHelpProp = value;
     24 }
     25 
     26 Object.defineProperties(obj, {
     27  foo: {
     28    set: set_func2
     29  }
     30 });
     31 verifyWritable(obj, "foo", "setVerifyHelpProp");
     32 
     33 verifyProperty(obj, "foo", {
     34  enumerable: false,
     35  configurable: true,
     36 });
     37 
     38 reportCompare(0, 0);