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-100.js (703B)


      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-100
      6 description: >
      7    Object.defineProperties - 'P' is data property, several attributes
      8    values of P and properties are different (8.12.9 step 12)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 Object.defineProperty(obj, "foo", {
     16  value: 100,
     17  writable: true,
     18  configurable: true
     19 });
     20 
     21 Object.defineProperties(obj, {
     22  foo: {
     23    value: 200,
     24    writable: false,
     25    configurable: false
     26  }
     27 });
     28 
     29 verifyProperty(obj, "foo", {
     30  value: 200,
     31  writable: false,
     32  enumerable: false,
     33  configurable: false,
     34 });
     35 
     36 reportCompare(0, 0);