;; Module that exports only __instance_signal but NOT __instance_terminated. ;; The shim registers this module — either signal is sufficient for registration. ;; The module will receive the SIGXCPU shutdown warning signal. Cleanup of the ;; strong memory reference relies on the weak instanceRef (GC-based). (module (memory (export "memory") 1) (global (export "__instance_signal") i32 (i32.const 0)) (func (export "get_signal") (result i32) (i32.load (global.get 0)) ) )