1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
(module
(type $0 (func))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table $timport$0 10 10 funcref))
(import "env" "g1" (global $from_segment i32))
(import "env" "g2" (global $from_segment_2 i32))
(import "env" "js_func" (func $a_js_func (type $0)))
(global $__THREW__ (mut i32) (i32.const 0))
(data $0 (i32.const 1024) "abcd")
(data $1 (global.get $from_segment) "abcd")
(elem $0 (global.get $from_segment_2) $table_func)
(export "wasm_func" (func $a_wasm_func))
(func $table_func (type $0)
(nop)
)
(func $a_wasm_func (type $0)
(call $a_js_func)
(drop
(global.get $__THREW__)
)
)
)
|