Debian Codegraph @

js/src/jit-test/tests/profiler/bug1161351.js

raw
1 function x() { n; }
2 function f() {
3 try { x(); } catch(ex) {}
4 }
5 var g = newGlobal({newCompartment: true});
6 g.parent = this;
7 g.eval("new Debugger(parent).onExceptionUnwind = function () {};");
8 enableGeckoProfiling();
9 try {
10 enableSingleStepProfiling();
11 } catch (e) {
12 // Not all platforms support single-step profiling.
13 }
14 f();
15 f();
16 f();