oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/plugin/grow.wat
399 bytes, 1 run
created by r1870400018:73491, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | (module $grow |
| 2 | (import "typst_env" "wasm_minimal_protocol_write_args_to_buffer" (func (param i32) (result ))) |
| 3 | (import "typst_env" "wasm_minimal_protocol_send_result_to_host" (func (param i32 i32) (result ))) |
| 4 | (memory (export "memory") 1) |
| 5 | (func (export "grow") (param ) (result i32) |
| 6 | loop |
| 7 | i32.const 1 |
| 8 | memory.grow |
| 9 | i32.const -1 |
| 10 | i32.ne |
| 11 | br_if 0 |
| 12 | end |
| 13 | unreachable |
| 14 | ) |
| 15 | ) |