summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bug1427860.js
blob: fd6d6f0411d0691bdc055bb40d4cd326529a6b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| --code-coverage; skip-if: !('oomAtAllocation' in this)

let x = cacheEntry("function inner() { return 3; }; inner()");
evaluate(x, { saveIncrementalBytecode: true });

try {
    // Fail XDR decode with partial script
    oomAtAllocation(20);
    evaluate(x, { loadBytecode: true });
} catch { }

getLcovInfo();