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

Function importModuleLoader

apps/desktop/src/sidecar/server.ts:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected