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-56.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.7-6-a-56
      6 description: >
      7    Object.defineProperties - desc.writable and P.writable are two
      8    boolean values with different values (8.12.9 step 6)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 var desc = {
     16  writable: false,
     17  configurable: true
     18 };
     19 Object.defineProperty(obj, "foo", desc);
     20 
     21 Object.defineProperties(obj, {
     22  foo: {
     23    writable: true,
     24    configurable: true
     25  }
     26 });
     27 
     28 verifyProperty(obj, "foo", {
     29  value: undefined,
     30  writable: true,
     31  enumerable: false,
     32  configurable: true,
     33 });
     34 
     35 reportCompare(0, 0);