summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findScripts-26.js
blob: 57709782abf6c5efc0240cd62cf8c11dc5f7a6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var g = newGlobal({newCompartment: true});
var dbg = new Debugger();
var gw = dbg.addDebuggee(g);

g.eval(`
function f() {
    function inner() {
        var x;
    }
}
`);

let url = thisFilename();
let line = 4;

oomTest(() => { dbg.findScripts({url, line}) });
oomTest(() => { dbg.findScripts({url, line, innermost: true}) });