diff --git a/crates/wasmparser/src/validator/component.rs b/crates/wasmparser/src/validator/component.rs index 83b1749a48..7d0b3bd260 100644 --- a/crates/wasmparser/src/validator/component.rs +++ b/crates/wasmparser/src/validator/component.rs @@ -2770,6 +2770,8 @@ impl ComponentState { false => ValType::I32, }, // Backwards compatibility: Assume `i32` memory if none was specified. + // FIXME(#2503): The spec requires `memory` if `realloc` is specified, but this + // may break existing code. None => ValType::I32, }; let ty_id = self.core_function_at(realloc_idx, offset)?;