1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// |jit-test| skip-if: !wasmIsSupported()
function wasmEvalText(str ) {
binary = wasmTextToBinary(str)
m = new WebAssembly.Module(binary)
return new WebAssembly.Instance(m)
}
ins = wasmEvalText(`
(func (export "get1") (param))
`);
ins.exports.get1(
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
)
|