Source code

Revision control

Copy as Markdown

Other Tools

// |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
)