tor-browser

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

15.2.3.6-4-78.js (732B)


      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-78
      6 description: >
      7    Object.defineProperty - desc.[[Set]] and name.[[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 setFunc1() {}
     16 
     17 Object.defineProperty(obj, "foo", {
     18  set: setFunc1,
     19  configurable: true
     20 });
     21 
     22 function setFunc2(value) {
     23  obj.setVerifyHelpProp = value;
     24 }
     25 
     26 Object.defineProperty(obj, "foo", {
     27  set: setFunc2
     28 });
     29 verifyWritable(obj, "foo", "setVerifyHelpProp");
     30 
     31 verifyProperty(obj, "foo", {
     32  enumerable: false,
     33  configurable: true,
     34 });
     35 
     36 reportCompare(0, 0);