blob: 30097bac3dfd54250e9f9c3a128f2c38bfc15c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// |jit-test| skip-if: isLcovEnabled()
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);
g.eval(`
function f() {
function inner() {
var x;
}
function asm_mod() {
"use asm";
function mtd() {}
return { mtd: mtd }
}
}
`);
gc();
gc();
let url = thisFilename();
let line = 4;
// Function `f` and `inner` should still match
assertEq(dbg.findScripts({url, line}).length, 2);
|