summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1161351.js
blob: 64ec67a4526eb03839ab3063945727cbfde42b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function x() { n; }
function f() {
  try  { x(); } catch(ex) {}
}
var g = newGlobal();
g.parent = this;
g.eval("new Debugger(parent).onExceptionUnwind = function () {};");
enableSPSProfiling();
try {
  enableSingleStepProfiling();
} catch (e) {
  // Not all platforms support single-step profiling.
}
f();
f();
f();