Debian Codegraph @

js/src/jit-test/tests/debug/Frame-eval-30.js

raw
1 // Test that Debugger.Frame.eval correctly throws on redeclaration.
2
3 load(libdir + "evalInFrame.js");
4
5 let x;
6
7 function f() {
8 evalInFrame(1, "var x;");
9 }
10
11 var log = "";
12
13 try {
14 f();
15 } catch (e) {
16 log += "e";
17 }
18
19 assertEq(log, "e");