assemblyscript/tests/compiler/named-import-default.optimized.wat
dcodeIO 16d1a833dd Always add a null function at table index zero
This allows function references (a table index internally) to be nullable
2018-09-17 01:48:35 +02:00

17 lines
455 B
Plaintext

(module
(type $i (func (result i32)))
(type $v (func))
(memory $0 0)
(export "memory" (memory $0))
(export "getValue" (func $named-import-default/getValue))
(func $named-export-default/get3 (; 0 ;) (; has Stack IR ;) (type $i) (result i32)
(i32.const 3)
)
(func $named-import-default/getValue (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
(call $named-export-default/get3)
)
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
(nop)
)
)