This repository has been archived on 2026-09-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
golem-v2-wasm3/test/regression/github-442.wat
T
tommie 35b5e2fb53 fix: memory.grow by a negative number is an error (#498)
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.
2024-08-07 12:28:25 +03:00

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))
)