summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/stencil-oom.js
blob: f57e8f82f85c390ff2f6022b1523ea57fe50080c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !('oomTest' in this)

const sa = `
function f(x, y) { return x + y }
let a = 10, b = 20;
f(a, b);
`;

oomTest(() => {
    let stencil = compileToStencilXDR(sa);
    evalStencilXDR(stencil);
});