Debian Codegraph @

js/src/jit-test/tests/parser/bug-1263355-22.js

raw
1 // |jit-test| error: ReferenceError
2
3 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/Frame-onPop-error-scope-unwind-02.js
4 var g = newGlobal({newCompartment: true});
5 var dbg = new Debugger(g);
6 dbg.onEnterFrame = function(f) {
7 (f.environment.getVariable("e") == 0);
8 };
9 g.eval("" + function f() {
10 try {
11 throw 42;
12 } catch (e) {
13 noSuchFn(e);
14 }
15 });
16 g.eval("f();");