tor-browser

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

15.2.3.6-4-84.js (734B)


      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-84
      6 description: >
      7    Object.defineProperty will not throw TypeError if
      8    name.configurable = false, name.writable = false, name.value =
      9    null and desc.value = null (8.12.9 step 10.a.ii.1)
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 
     14 var obj = {};
     15 
     16 Object.defineProperty(obj, "foo", {
     17  value: null,
     18  writable: false,
     19  configurable: false
     20 });
     21 
     22 Object.defineProperty(obj, "foo", {
     23  value: null,
     24  writable: false,
     25  configurable: false
     26 });
     27 
     28 verifyProperty(obj, "foo", {
     29  value: null,
     30  writable: false,
     31  enumerable: false,
     32  configurable: false,
     33 });
     34 
     35 reportCompare(0, 0);