bug-1892564.js (1382B)
1 try { evalInWorker(` 2 gczeal(0); 3 try { 4 Object.defineProperty(this, "x", { 5 value:{ 6 parseInt: parseInt, 7 } 8 }); 9 } catch(exc) {} 10 function dummyAssertCallFunction(f) {} 11 try { evaluate(\` 12 (function(global) { 13 var ObjectCreate = global.Object.create; 14 var ObjectDefineProperty = global.Object.defineProperty; 15 function ArrayPush(arr, val) { 16 var desc = ObjectCreate(null); 17 desc.value = val; 18 desc.enumerable = true; 19 desc.configurable = true; 20 desc.writable = true; 21 ObjectDefineProperty(arr, arr.length, desc); 22 } 23 var testCasesArray = []; 24 function TestCase(d, e, a, r) { 25 this.description = d; 26 ArrayPush(testCasesArray, this); 27 } 28 global.TestCase = TestCase; 29 })(this); 30 (function f42(x99) { 31 new TestCase(new ArrayBuffer()); 32 f42(x99) 33 function t9() {} 34 })(); 35 \`); } catch(exc) {} 36 try { evaluate(\` 37 gczeal(14); 38 (function(global) { 39 global.makeIterator = function makeIterator(overrides) { 40 global.assertThrowsValue = function assertThrowsValue(f, val, msg) {}; 41 } 42 global.assertDeepEq = (function(){ 43 var call = Function.prototype.call, 44 Symbol_description = call.bind(Object.getOwnPropertyDescriptor(Symbol.prototype, "description").get), 45 Map_has = call.bind(Map.prototype.has), 46 Object_getOwnPropertyNames = Object.getOwnPropertyNames; 47 })(); 48 })(this); 49 \`); } catch(exc) {} 50 `); throw "x"; } catch(exc) {}