tor-browser

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

15.2.3.6-4-85.js (728B)


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