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

// Delazify a function while encoding bytecode.
oomTest(() => {
        let code = cacheEntry(`
                function f() { }
                f();
        `);
        evaluate(code, { saveIncrementalBytecode: true });
});