tor-browser

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

15.2.3.12-2-1.js (587B)


      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.12-2-1
      6 description: >
      7    Object.isFrozen - inherited data property is not considered into
      8    the for each loop
      9 ---*/
     10 
     11 var proto = {};
     12 Object.defineProperty(proto, "Father", {
     13  value: 10,
     14  writable: false,
     15  configurable: true
     16 });
     17 
     18 var Con = function() {};
     19 Con.prototype = proto;
     20 
     21 var child = new Con();
     22 
     23 Object.preventExtensions(child);
     24 
     25 assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true');
     26 
     27 reportCompare(0, 0);