bug763440.js (578B)
1 load(libdir + "immutable-prototype.js"); 2 3 var summary = ''; 4 var actual = ''; 5 gcPreserveCode() 6 function TestCase(n, d, e, a) { 7 this.name=n; 8 } 9 function reportCompare (expected, actual, description) { 10 new TestCase 11 } 12 reportCompare(true, eval++, "Dummy description."); 13 var p = new Proxy({}, { 14 has : function(id) {}, 15 set : function() {} 16 }); 17 if (globalPrototypeChainIsMutable()) 18 Object.prototype.__proto__ = p; 19 new TestCase; 20 var expect = ''; 21 reportCompare(expect, actual, summary); 22 gczeal(4); 23 try { 24 evalcx("."); 25 } catch (e) {} 26 reportCompare(expect, actual, summary);