Files: d48b7065a388045f96fc7be1588e12150b8de8bb / tests / wast / creation.wast
732 bytesRaw
1 | (module |
2 | (import "module" "export" (func $mod.exports (param i32 i32) (result i32))) |
3 | (import "module" "new" (func $mod.new (param i32) (result i32))) |
4 | (import "memory" "externalize" (func $mem.externalize (param i32 i32) (result i32))) |
5 | (import "func" "internalize" (func $func.internalize (param i32 i32))) |
6 | (memory (export "memory") 1) |
7 | (data (i32.const 0) "receive") |
8 | (table (export "table") 1 1 anyfunc) |
9 | (func $main (param $bin i32) |
10 | (call $func.internalize |
11 | (i32.const 0) |
12 | (call $mod.exports |
13 | (call $mod.new (get_local $bin)) |
14 | (call $mem.externalize (i32.const 0) (i32.const 7)))) |
15 | |
16 | (call_indirect (param i32) |
17 | (i32.const 5) |
18 | (i32.const 0))) |
19 | |
20 | (export "main" (func $main))) |
21 |
Built with git-ssb-web