summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/oom-init.js
blob: 4c6d0206b69dd1f01687aa62017ec469f20eeefd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| slow; allow-oom; skip-if: !wasmIsSupported() || !hasFunction.oomTest

Object.getOwnPropertyNames(this);
s = newGlobal();
evalcx("\
    /x/;\
    oomTest(function() {\
        this[\"\"];\
        void 0;\
        Object.freeze(this);\
        l(undefined)();\
        O;\
        t;\
        0;\
        ({e});\
        i;\
        0;\
        ({ z: p ? 0 : 0});\
        s;\
    });\
", s);