blob: aa7bda74854b51e89bfcedf1f60c600ef1bacd0c (
plain)
1
2
3
4
5
6
7
8
9
10
|
let i = new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(`
(module
(func $f (result f32)
f32.const nan:0x42
)
(table (export "table") 10 funcref)
(elem (i32.const 0) $f)
)
`))).exports;
i.table.get(0)();
|