Debian Codegraph @

js/src/jit-test/tests/debug/bug1252453.js

raw
1 // |jit-test| --no-threads
2
3 lfcode = new Array();
4 gczeal(8,2);
5 lfcode.push(`
6 const root = newGlobal();
7 const dbg = new Debugger;
8 const wrappedRoot = dbg.addDebuggee(root);
9 dbg.memory.trackingAllocationSites = 1;
10 root.eval("(" + function immediate() { '_' << foo } + "())");
11 `);
12 file = lfcode.shift();
13 loadFile(file);
14 function loadFile(lfVarx) {
15 try {
16 function newFunc(x) { return Function(x)(); }
17 newFunc(lfVarx)();
18 } catch (lfVare) {
19 print(lfVare)
20 }
21 }