blob: 2a6513011b6a6e54cdbfd4f08e3e34f2195f4355 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// |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;
}
}
`);
// GC will collect top-level script of the eval
gc();
gc();
let url = thisFilename();
let line = 4;
// Function `f` and `inner` should still match
assertEq(dbg.findScripts({url, line}).length, 2);
|