bug1802100.js (404B)
1 // |jit-test| exitstatus: 3 2 3 // Throw an object as an exception from the interrupt handler. 4 setInterruptCallback(function() { 5 throw {}; 6 }); 7 8 // Cause a second exception while trying to report the first exception. 9 Object.prototype[Symbol.toPrimitive] = function () { return {} } 10 11 // Trigger an interrupt in the prologue of a baseline function. 12 function b() { 13 var c; 14 interruptIf(true); 15 b(); 16 } 17 b();