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-39.js (714B)


      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-39
      6 description: >
      7    Object.defineProperties - 'P' is data descriptor and every fields
      8    in 'desc' is the same with 'P' (8.12.9 step 6)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
     16 
     17 Object.defineProperties(obj, {
     18  foo: {
     19    value: 101,
     20    enumerable: true,
     21    writable: true,
     22    configurable: true
     23  }
     24 });
     25 
     26 verifyProperty(obj, "foo", {
     27  value: 101,
     28  writable: true,
     29  enumerable: true,
     30  configurable: true,
     31 });
     32 
     33 reportCompare(0, 0);