tor-browser

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

15.2.3.6-4-77.js (683B)


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