diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp index e3a280d4fc..857ca555be 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp @@ -24,7 +24,7 @@ ErrorOr Validator::validate(Module& module) if (result.is_error()) return; for (auto& export_ : section.entries()) { - if (seen_export_names.try_set(export_.name()) != AK::HashSetResult::InsertedNewEntry) + if (seen_export_names.try_set(export_.name()).release_value_but_fixme_should_propagate_errors() != AK::HashSetResult::InsertedNewEntry) result = Errors::duplicate_export_name(export_.name()); return; }