Debian Codegraph @

js/src/jit-test/tests/debug/Environment-setVariable-16.js

raw
1 (function () {
2 const otherDebugger = newGlobal({ sameZoneAs: this }).Debugger;
3 const dbg = otherDebugger(this);
4
5 const env = dbg.getNewestFrame().callee.environment;
6 var ran = false;
7 try {
8 env.setVariable("tdz_variable", 10);
9 ran = true;
10 } catch (e) { }
11 assertEq(ran, false);
12 })();
13
14 // We shouldn't crash when initializing this.
15 let tdz_variable = 10;
16