Archived
This is to comply with e.g. wasmtime. The spec does not make it explicit what growing by a negative number should mean. It's likely a mistake, so let's fail. Closes #442.
8 lines
126 B
WebAssembly Text Format
8 lines
126 B
WebAssembly Text Format
(module
|
|
(func $to_test (result i32)
|
|
i32.const -1
|
|
memory.grow)
|
|
(memory 1 5)
|
|
(export "to_test" (func $to_test))
|
|
)
|