tor-browser

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

15.2.3.6-4-58.js (612B)


      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-58
      6 description: >
      7    Object.defineProperty - 'name' is data descriptor and every fields
      8    in 'desc' is absent (8.12.9 step 5)
      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.defineProperty(obj, "foo", {});
     18 
     19 verifyProperty(obj, "foo", {
     20  value: 101,
     21  writable: true,
     22  enumerable: true,
     23  configurable: true,
     24 });
     25 
     26 reportCompare(0, 0);