summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1252453.js
blob: 626d9be62480b849e5f7fcedd517048f435738cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| --no-threads

lfcode = new Array();
gczeal(8,2);
lfcode.push(`
const root = newGlobal();
const dbg = new Debugger;
const wrappedRoot = dbg.addDebuggee(root);
dbg.memory.trackingAllocationSites = 1;
root.eval("(" + function immediate() { '_'  << foo } + "())");
`);
file = lfcode.shift();
loadFile(file);
function loadFile(lfVarx) {
    try {
        function newFunc(x) { return Function(x)(); }
        newFunc(lfVarx)();
    } catch (lfVare) {
        print(lfVare)
    }
}