Files
wasm2elf-mb/examples/shine_rise.wat

16 lines
294 B
WebAssembly Text Format

(module
(func $rise (result i32)
i32.const 6)
(func $shine (param $hour i32) (result i32)
local.get $hour
i32.const 9
i32.lt_u
if (result i32)
unreachable
else
i32.const 1
end)
(func (export "morning") (result i32)
call $rise
call $shine))