summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInParseAsmJS.js
blob: 72216e1c2c1d634d81d5ec21f3b8405a246ec33e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| skip-if: !('oomTest' in this)

function parseAsmJS() {
    eval(`function m(stdlib)
          {
            "use asm";
            var abs = stdlib.Math.abs;
            function f(d)
            {
              d = +d;
              return (~~(5.0 - +abs(d)))|0;
            }
            return f;
          }`);
}
oomTest(parseAsmJS);