tor-browser

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

15.2.3.9-2-a-1.js (473B)


      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-a-1
      6 description: Object.freeze - 'P' is own data property
      7 includes: [propertyHelper.js]
      8 ---*/
      9 
     10 var obj = {};
     11 
     12 obj.foo = 10; // default [[Configurable]] attribute value of foo: true
     13 
     14 Object.freeze(obj);
     15 
     16 verifyProperty(obj, "foo", {
     17  value: 10,
     18  writable: false,
     19  configurable: false,
     20 });
     21 
     22 reportCompare(0, 0);