summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug1421565.js
blob: 54719e87f7230d6624f966815c2ff4093a7ad1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| --ion-offthread-compile=off; skip-if: !isAsmJSCompilationAvailable()

load(libdir + "asm.js");

oomTest(
  function() {
    eval(`
      function f(stdlib, foreign, buffer) {
        "use asm";
         var i32 = new stdlib.Int32Array(buffer);
         function set(v) {
           v=v|0;
           i32[5] = v;
         }
        return set;
      }
    `);
  }
);