git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 49051b3e16dc9927b3bbcfe2f7a8af88ccc8a232

Files: 49051b3e16dc9927b3bbcfe2f7a8af88ccc8a232 / tests / wast / funcRef_caller.wast

718 bytesRaw
1(module
2 (import "func" "internalize" (func $internalize (param i32 i32)))
3 (import "test" "check" (func $check (param i32 i32)))
4 (import "module" "self" (func $self (result i32)))
5 (import "module" "exports" (func $exports (param i32 i32 i32) (result i32)))
6 (memory (export "memory") 1)
7 (data (i32.const 0) "callback")
8 (table (export "table") 1 1 anyfunc)
9 (func $call (param i32)
10 call $self
11 i32.const 0
12 i32.const 8
13 call $exports
14
15 i32.const 0
16 get_local 0
17 call $internalize
18 i32.const 0
19 call_indirect (param i32)
20 )
21 (func $callback (param i32)
22 get_local 0
23 i32.const 5
24 call $check
25 )
26 (export "call" (func $call))
27 (export "callback" (func $callback)))
28

Built with git-ssb-web