diff --git a/crates/wasmparser/src/validator/component.rs b/crates/wasmparser/src/validator/component.rs index e26984e7c9..a557521729 100644 --- a/crates/wasmparser/src/validator/component.rs +++ b/crates/wasmparser/src/validator/component.rs @@ -808,7 +808,7 @@ impl ComponentState { ComponentEntityType::Value(*self.value_at(*idx, offset)?) } crate::ComponentExportKind::Type(idx) => { - ComponentEntityType::Type(self.interface_type_at(*idx, types, offset)?) + ComponentEntityType::Type(self.type_at(*idx, offset)?) } }) } @@ -1436,7 +1436,7 @@ impl ComponentState { crate::ComponentExportKind::Type(idx) => { insert_export( export.name, - ComponentEntityType::Type(self.interface_type_at(idx, types, offset)?), + ComponentEntityType::Type(self.type_at(idx, offset)?), &mut inst_exports, offset, )?;