a31eb59678
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
774 B
WebAssembly Text Format
18 lines
774 B
WebAssembly Text Format
;; Traps instead of answering: the host must survive it.
|
|
(module
|
|
(memory (export "memory") 32)
|
|
(global $bump (mut i32) (i32.const 1048576))
|
|
(func (export "ns_alloc") (param $n i32) (result i32)
|
|
(local $p i32)
|
|
(local.set $p (global.get $bump))
|
|
(global.set $bump (i32.add (local.get $p) (local.get $n)))
|
|
(local.get $p))
|
|
(func (export "ns_free") (param i32) (param i32))
|
|
(func (export "ns_abi_version") (result i32) (i32.const 1))
|
|
(func (export "ns_on_load") (result i32) (i32.const 0))
|
|
(func (export "ns_on_unload") (result i32) (i32.const 0))
|
|
(func (export "ns_on_event") (param i32) (param i32) (result i32)
|
|
(unreachable))
|
|
(func (export "ns_run_command") (param i32) (param i32) (param i32) (param i32) (result i64)
|
|
(unreachable))
|
|
) |