summaryrefslogtreecommitdiff
path: root/crates/parser/src/conversion.rs
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-08-11 17:25:32 +0200
committerHenry <mail@henrygressmann.de>2026-08-11 17:25:32 +0200
commit64cf33ced2db2135dd355a1c6e049bf51c93d956 (patch)
treed75977f68718fcb5270f12a10a17bf2d56be85d3 /crates/parser/src/conversion.rs
parentbe3c350746e3dc6284b40349a8ac4a170d807c58 (diff)
chore: more superinstructions, cleanup
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/conversion.rs')
-rw-r--r--crates/parser/src/conversion.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs
index 694c639..480a8d0 100644
--- a/crates/parser/src/conversion.rs
+++ b/crates/parser/src/conversion.rs
@@ -440,8 +440,7 @@ fn convert_heap_type_with_group(
)));
}
};
- RefType::new_concrete(nullable, index)
- .ok_or_else(|| crate::ParseError::Other(format!("heap type index is too large: {index}")))
+ Ok(RefType::new_concrete(nullable, index))
}
wasmparser::HeapType::Abstract { shared: true, .. } | wasmparser::HeapType::Exact(_) => {
Err(crate::ParseError::UnsupportedOperator(format!("Unsupported heap type: {heap:?}")))