Debian Codegraph @

js/src/jit-test/tests/errors/bug1802100.js

raw
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();