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