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