Function default

  • If module_or_path is {RequestInfo} or {URL}, makes a request and for everything else, calls WebAssembly.instantiate directly.

    Parameters

    • Optionalmodule_or_path:
          | { module_or_path: InitInput | Promise<InitInput> }
          | InitInput
          | Promise<InitInput>

      Passing InitInput directly is deprecated.

    Returns Promise<InitOutput>