summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1276631.js
blob: f80e7f02102f3579c301fd742055cd06e35a73be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
gczeal(15,5);
try {
    foobar();
} catch (e) {}
function newFunc(x) {
    new Function(x)();
};
loadFile(`
  try { gczeal(10, 2)() } catch (e) {}
`);
function loadFile(lfVarx) {
    function newFunc(x) {
        new Function(x)();
    };
    newFunc(lfVarx);
    if (helperThreadCount() && getJitCompilerOptions()["offthread-compilation.enable"]) {}
}