wiggle enforces this but the specially-overridden proc_exit function did not. Now that we proc_exit through wiggle, wiggle will trap if it cannot import the instance's memory
10 lines
219 B
Plaintext
10 lines
219 B
Plaintext
(module
|
|
(import "wasi_unstable" "proc_exit"
|
|
(func $__wasi_proc_exit (param i32)))
|
|
(memory (export "memory") 0)
|
|
(func $_start
|
|
(call $__wasi_proc_exit (i32.const 2))
|
|
)
|
|
(export "_start" (func $_start))
|
|
)
|