summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js
blob: 02462349324704d3417c489d442821e1a96d7f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
enableGeckoProfiling();
try {
  // Only the ARM simulator supports single step profiling.
  enableSingleStepProfiling();
} catch (e) {
  quit(0);
}
var g = newGlobal({newCompartment: true});
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (frame) {};
g.eval("var line = new Error().lineNumber; debugger;");