tor-browser

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

15.2.3.10-2.js (562B)


      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 info: The effect of preventExtentions must be testable by calling isExtensible
      6 es5id: 15.2.3.10-2
      7 description: >
      8    Object.preventExtensions returns its arguments after setting its
      9    extensible property to false
     10 ---*/
     11 
     12 var o = {};
     13 var o2 = undefined;
     14 
     15 o2 = Object.preventExtensions(o);
     16 
     17 assert.sameValue(o2, o, 'o2');
     18 assert.sameValue(Object.isExtensible(o2), false, 'Object.isExtensible(o2)');
     19 
     20 reportCompare(0, 0);