Function instantiate

  • Asynchrously instantiate a new Instance.

    importObject can also be a LibraryProvider object, a WASI object, or an object containing wasmLibraryProvider field. We can take benefit of syslib implementations from the Emscripten by passing its generated js Module as the imports.

    Parameters

    • bufferSource: ArrayBuffer

      The source to be compiled.

    • importObject: Record<string, any> = {}

      The import objects.

    • logger: ((msg) => void) = console.log

      The system logger.

        • (msg): void
        • Parameters

          • msg: string

          Returns void

    Returns Promise<Instance>

Generated using TypeDoc