tor-browser

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

15.2.3.6-4-41.js (591B)


      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-41
      6 description: >
      7    Object.defineProperty - 'O' is the JSON object that uses Object's
      8    [[GetOwnProperty]] method to access the 'name' property (8.12.9
      9    step 1)
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 
     14 Object.defineProperty(JSON, "foo", {
     15  value: 12,
     16  configurable: true
     17 });
     18 
     19 verifyProperty(JSON, "foo", {
     20  value: 12,
     21  writable: false,
     22  enumerable: false,
     23  configurable: true,
     24 });
     25 
     26 delete JSON.foo;
     27 
     28 reportCompare(0, 0);