MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / ensureNativeLoaded

Function ensureNativeLoaded

packages/node/src/backend/nodeBackendInline.ts:492–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490 }
491
492 async function ensureNativeLoaded(): Promise<NativeApi> {
493 if (native !== null) return native;
494 if (nativePromise !== null) return nativePromise;
495 nativePromise = loadNative(opts.nativeShimModule).then((mod) => {
496 native = mod;
497 return mod;
498 });
499 return nativePromise;
500 }
501
502 function ensureDebugApiLoaded(api: NativeApi): NativeApiWithDebug {
503 if (typeof api.engineDebugEnable !== "function") {

Callers 1

startFunction · 0.85

Calls 1

loadNativeFunction · 0.70

Tested by

no test coverage detected