Functiondefault

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

    Parameters

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

      Passing InitInput directly is deprecated.

    Returns Promise<InitOutput>