Debian Codegraph @

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

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