js/src/jit-test/tests/asm.js/testLinkErrorAssert.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:84c7a0d6df41
1 // This test should not assert.
2
3 function asmModule(g, foreign, heap) {
4 "use asm";
5 let HEAP8 = new g.Int8Array(heap);
6
7 function f() { return 99; }
8 return {f: f};
9 }
10
11 // linking error
12 let m = asmModule(this, 2, new ArrayBuffer(4095));
13
14 print(m.f());
15
16 // linking error
17 let m2 = asmModule(this, 2, new ArrayBuffer(2048));
18
19 print(m2.f());
20

mercurial