Skip to content

Commit

Permalink
Merge pull request #7 from jerbob92/feature/fix-import-check-on-optim…
Browse files Browse the repository at this point in the history
…ized-builds

Fix import check on optimized builds
  • Loading branch information
jerbob92 authored Oct 6, 2023
2 parents b0029cd + 54e4ab8 commit 1d090a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wazero.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func (e unexportedFunctionError) Error() string {
func (e functionExporter) GetImportedFunction(name string) api.FunctionDefinition {
importedFunctions := e.guest.ImportedFunctions()
for i := range importedFunctions {
if importedFunctions[i].Name() == name {
module, importName, _ := importedFunctions[i].Import()
if module == "env" && importName == name {
return importedFunctions[i]
}
}
Expand Down

0 comments on commit 1d090a2

Please sign in to comment.