tor-browser

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

object-seal-non-enumerable-own-property-of-o-is-sealed.js (521B)


      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 esid: sec-setintegritylevel
      6 description: Object.seal - non-enumerable own property of 'O' is sealed
      7 includes: [propertyHelper.js]
      8 ---*/
      9 
     10 var obj = {};
     11 
     12 Object.defineProperty(obj, "foo", {
     13  value: 10,
     14  enumerable: false,
     15  configurable: true
     16 });
     17 
     18 assert(Object.isExtensible(obj));
     19 Object.seal(obj);
     20 
     21 verifyProperty(obj, "foo", {
     22  configurable: false,
     23 });
     24 
     25 reportCompare(0, 0);