Skip to content
File

Blob: src/workerd/io/wasm/signal-basic.wat

488 bytes
1;; Basic WASM module exporting __instance_signal, __instance_terminated, and memory.
2;; Used to verify that the registration shim detects both globals and registers
3;; the module, and that the sync WebAssembly.Instance constructor also registers.
4 
5(module
6 (memory (export "memory") 1)
7 
8 (global (export "__instance_signal") i32 (i32.const 0))
9 (global (export "__instance_terminated") i32 (i32.const 4))
10 
11 (func (export "get_signal") (result i32)
12 (i32.load (global.get 0))
13 )
14)