Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
Initialize imported module
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaioletti committed Sep 13, 2019
1 parent 1e64ad3 commit c1dd6b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion wasm/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,16 @@ func (module *Module) resolveImports(resolve ResolveFunc) error {
if err != nil {
return err
}

for _, fn := range []func() error{
importedModule.populateGlobals,
importedModule.populateFunctions,
importedModule.populateTables,
importedModule.populateLinearMemory,
} {
if err := fn(); err != nil {
return err
}
}
modules[importEntry.ModuleName] = importedModule
}

Expand Down

0 comments on commit c1dd6b0

Please sign in to comment.