summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-setInstrumentation-bug1571169.js
blob: 6359d96cad2981f0079fc49df50228b240955be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| error: Error

var lfOffThreadGlobal = newGlobal();
evaluate(`
  nukeAllCCWs();
  var g92 = newGlobal({ newCompartment: true });
  var dbg = Debugger(g92);
  var gdbg = dbg.addDebuggee(g92);
  gdbg.setInstrumentation(
    gdbg.makeDebuggeeValue((kind, script, offset) => {}),
    ["breakpoint"]
  );
  gdbg.setInstrumentationActive(true);
  g92.eval(\`
    function basic() {}
  \`);
`);