summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js')
-rw-r--r--js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js b/js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js
new file mode 100644
index 000000000..9dd68d628
--- /dev/null
+++ b/js/src/jit-test/tests/profiler/debugmode-osr-resume-addr.js
@@ -0,0 +1,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;");