summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bug1427860.js
blob: befa6782ae208cde4254da45faa2a062388ec3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| --code-coverage

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();