summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bug1503722.js
blob: bf663e183f65b1616a27bc5974678480cbe67d42 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('oomAtAllocation' in this) || helperThreadCount() === 0

let THREAD_TYPE_PARSE = 4;
let t = cacheEntry("function f() { function g() { }; return 3; };");
evaluate(t, { sourceIsLazy: true, saveIncrementalBytecode: true });
for (var i = 1; i < 20; ++i) {
    oomAtAllocation(i, THREAD_TYPE_PARSE);
    offThreadDecodeStencil(t, { sourceIsLazy: true });
    gc();
}