Skip to content
File

Blob: src/workerd/io/wasm/signal-imported-memory.wat

384 bytes
1;; Module that imports memory rather than defining its own.
2;; The shim must find the memory in the imports object via Module.imports().
3 
4(module
5 (import "env" "memory" (memory 1))
6 
7 (global (export "__instance_signal") i32 (i32.const 0))
8 (global (export "__instance_terminated") i32 (i32.const 4))
9 
10 (func (export "get_signal") (result i32)
11 (i32.load (global.get 0))
12 )
13)