addImports method

WasmInstanceBuilder addImports(
  1. List<WasmImport> imports
)

Adds multiple imports to the module. May throw if some of the imports are not found or the type definition does not match the import value.

Implementation

WasmInstanceBuilder addImports(List<WasmImport> imports) {
  for (final import in imports) {
    addImport(import.moduleName, import.name, import.value);
  }
  return this;
}