git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 885e05bd77e55f9846f83ccd30e285c5566e6f38

Files: 885e05bd77e55f9846f83ccd30e285c5566e6f38 / tests / wast / table.wast

723 bytesRaw
1(module
2 (import "elem" "externalize" (func $externalize (param i32 i32) (result i32)))
3 (import "memory" "externalize" (func $mem_externalize (param i32 i32) (result i32)))
4 (import "elem" "internalize" (func $internalize (param i32 i32 i32 i32)))
5 (memory (export "memory") 1)
6 (data (i32.const 0) "test")
7 (func $test
8 (i32.store
9 (i32.const 0)
10 (call $mem_externalize (i32.const 0) (i32.const 4)))
11 (i32.store
12 (i32.const 4)
13 (call $mem_externalize (i32.const 0) (i32.const 4)))
14
15 (call $internalize
16 (i32.const 8)
17 (i32.const 2)
18 (call $externalize
19 (i32.const 0)
20 (i32.const 2))
21 (i32.const 0))
22 )
23 (export "test" (func $test)))
24

Built with git-ssb-web