summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findScripts-26.js
blob: 1c1510aa4f441e0c44436f473f9ddf3292daaa9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| skip-if: !('oomTest' in this)
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}) });