tor-browser

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

object-seal-o-is-a-boolean-object.js (462B)


      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 - 'O' is a Boolean object
      7 ---*/
      8 
      9 var boolObj = new Boolean(false);
     10 var preCheck = Object.isExtensible(boolObj);
     11 Object.seal(boolObj);
     12 
     13 assert(preCheck, 'preCheck !== true');
     14 assert(Object.isSealed(boolObj), 'Object.isSealed(boolObj) !== true');
     15 
     16 reportCompare(0, 0);