blob: 04ab7183056395e38cabc83638a0d9ad848c7fad (
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() || !('oomTest' in this)
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;
}
`);
}
);
|