MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / importModuleLoader

Function importModuleLoader

apps/cli/src/main.ts:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 const importFFI: QuickJSSyncVariant["importFFI"] = () =>
30 import("@jitl/quickjs-wasmfile-release-sync/ffi").then((m) => m.QuickJSFFI);
31 const importModuleLoader: QuickJSSyncVariant["importModuleLoader"] = async () => {
32 const { default: original } =
33 await import("@jitl/quickjs-wasmfile-release-sync/emscripten-module");
34 return (moduleArg = {}) => original({ ...moduleArg, wasmBinary });
35 };
36 const variant: QuickJSSyncVariant = {
37 type: "sync" as const,
38 importFFI,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected