summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/debugmode-osr-exception-return-addr.js
blob: f91ce610e54aeb696fe06719b9367348d319060c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: ReferenceError

var g = newGlobal({newCompartment: true});
g.parent = this;
g.eval("new Debugger(parent).onExceptionUnwind = function () { };");
enableGeckoProfiling();

try {
  // Only the ARM simulator supports single step profiling.
  enableSingleStepProfiling();
} catch (e) {
  throw new ReferenceError;
}

enableSingleStepProfiling();
a()