Source code

Revision control

Copy as Markdown

Other Tools

// Test that Debugger.Frame.eval correctly throws on redeclaration.
load(libdir + "evalInFrame.js");
let x;
function f() {
evalInFrame(1, "var x;");
}
var log = "";
try {
f();
} catch (e) {
log += "e";
}
assertEq(log, "e");