summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug980585.js
blob: 48988733ce8d40eba0c3710bedfede7ee7a08103 (plain)
1
2
3
4
5
6
7
8
9
10
var g = newGlobal();
var dbg = new Debugger(g);

try {
  g.eval("function f() { [1].map(function () {}); const x = 42; x = 43; } f();");
} catch (e) {
  // Ignore the syntax error.
}

dbg.findScripts();