tvmjs
    Preparing search index...

    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: string) => void = console.log

        The system logger.

      Returns Promise<Instance>