Skip to content

Commit

Permalink
reinstate type check in TableEntity::init
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Oct 6, 2024
1 parent fe664ba commit b70b16d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wasmi/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ impl TableEntity {
"table.init currently only works on reftypes"
);
// Removed because Element lost its type field in a wasmparser update.
// table_type
// .matches_element_type(element.ty())
// .map_err(|_| TrapCode::BadSignature)?;
table_type
.matches_element_type(element.ty())
.map_err(|_| TrapCode::BadSignature)?;
// Convert parameters to indices.
let dst_index = dst_index as usize;
let src_index = src_index as usize;
Expand Down

0 comments on commit b70b16d

Please sign in to comment.