summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/errors/bug1802100.js
blob: 2b0a1bd1f8ff00f1c73d461a166d6ad14b498e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| exitstatus: 3

// Throw an object as an exception from the interrupt handler.
setInterruptCallback(function() {
  throw {};
});

// Cause a second exception while trying to report the first exception.
Object.prototype[Symbol.toPrimitive] = function () { return {} }

// Trigger an interrupt in the prologue of a baseline function.
function b() {
  var c;
  interruptIf(true);
  b();
}
b();