assemblyscript/tests/compiler/class-with-boolean-field.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

20 lines
400 B
Plaintext

(module
(type $i (func (result i32)))
(type $v (func))
(memory $0 0)
(export "memory" (memory $0))
(export "test" (func $class-with-boolean-field/test))
(func $class-with-boolean-field/test (; 0 ;) (; has Stack IR ;) (type $i) (result i32)
(i32.store8
(i32.const 0)
(i32.const 1)
)
(i32.load8_u
(i32.const 0)
)
)
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
(nop)
)
)