summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js
blob: 2723378230df2bf120cad4ee9fe62445d6211566 (plain)
1
2
3
4
5
6
7
8
9
10
11
if (typeof oomAfterAllocations !== 'function' || typeof evaluate !== 'function')
    quit();

oomAfterAllocations(10, 2);
evaluate(`function mod(stdlib, ffi, heap) {
    "use asm";
    function f3(k) {
        k = k | 0;
    }
    function g3(k) {}
}`);