Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LibraryProvider

Library interface provider that can provide syslibs(e.g. libs provided by WASI and beyond) for the Wasm runtime.

It can be viewed as a generalization of imports used in WebAssembly instance creation.

The LibraryProvider.start callback will be called to allow the library provider to initialize related resources during startup time.

We can use Emscripten generated js Module as a { wasmLibraryProvider: LibraryProvider }.

Hierarchy

  • LibraryProvider

Implemented by

Index

Properties

Properties

imports

imports: Record<string, any>

The imports that can be passed to WebAssembly instance creation.

start

start: (inst: Instance) => void

Callback function to notify the provider the created instance.

param

The created instance.

Type declaration

    • (inst: Instance): void
    • Parameters

      • inst: Instance

      Returns void

Generated using TypeDoc