blob: 2da402275bc912189e1a5cb48ac07b32708f86ad (
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({newCompartment: true});
g.parent = this;
g.eval("new Debugger(parent).onExceptionUnwind = function () {};");
enableGeckoProfiling();
try {
enableSingleStepProfiling();
} catch (e) {
// Not all platforms support single-step profiling.
}
f();
f();
f();
|