tor-browser

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

15.2.3.9-2-c-1.js (636B)


      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.9-2-c-1
      6 description: >
      7    Object.freeze - The [[Configurable]] attribute of own data
      8    property of 'O' is set to false while other attributes are
      9    unchanged
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 var obj = {};
     14 
     15 Object.defineProperty(obj, "foo", {
     16  value: 10,
     17  writable: false,
     18  enumerable: true,
     19  configurable: true
     20 });
     21 
     22 Object.freeze(obj);
     23 
     24 verifyProperty(obj, "foo", {
     25  value: 10,
     26  writable: false,
     27  enumerable: true,
     28  configurable: false,
     29 });
     30 
     31 reportCompare(0, 0);