Skip to content
File

Blob: src/workerd/io/wasm/signal-partial-exports.wat

489 bytes
1;; Module that exports only __instance_signal but NOT __instance_terminated.
2;; The shim registers this module — either signal is sufficient for registration.
3;; The module will receive the SIGXCPU shutdown warning signal. Cleanup of the
4;; strong memory reference relies on the weak instanceRef (GC-based).
5 
6(module
7 (memory (export "memory") 1)
8 
9 (global (export "__instance_signal") i32 (i32.const 0))
10 
11 (func (export "get_signal") (result i32)
12 (i32.load (global.get 0))
13 )
14)