tor-browser

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

15.2.3.6-4-106.js (719B)


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