tor-browser

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

15.2.3.9-2-b-i-1.js (630B)


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