summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug980585.js
blob: 30d8c44e5214f8687e04b17c26e5c26faf606628 (plain)
1
2
3
4
5
6
7
8
9
10
var g = newGlobal({newCompartment: true});
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();