Debian Codegraph @

js/src/jit-test/tests/debug/bug1847360.js

raw
1 try {
2 g = newGlobal({ newCompartment: true });
3 g.z = this;
4 g.eval(
5 "(" +
6 function () {
7 Debugger(z).onExceptionUnwind = function (y) {
8 y.eval("f=0");
9 };
10 } +
11 ")()"
12 );
13 (function f() {
14 x;
15 })();
16 } catch (e) {
17 assertEq(e instanceof ReferenceError, true);
18 }