assemblyscript/tests/compiler/empty.untouched.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

11 lines
196 B
Plaintext

(module
(type $v (func))
(global $HEAP_BASE i32 (i32.const 8))
(table 1 1 anyfunc)
(elem (i32.const 0) $null)
(memory $0 0)
(export "memory" (memory $0))
(func $null (; 0 ;) (type $v)
)
)