summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/oomInParseAsmJS.js
blob: e2d84418973e42faa969c95381de8f6c18de4d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);