Source code

Revision control

Copy as Markdown

Other Tools

// |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);