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

Function ensureDebugApiLoaded

packages/node/src/backend/nodeBackendInline.ts:502–525  ·  view source on GitHub ↗
(api: NativeApi)

Source from the content-addressed store, hash-verified

500 }
501
502 function ensureDebugApiLoaded(api: NativeApi): NativeApiWithDebug {
503 if (typeof api.engineDebugEnable !== "function") {
504 throw new Error("inline backend: native debug API is unavailable");
505 }
506 if (typeof api.engineDebugDisable !== "function") {
507 throw new Error("inline backend: native debug API is unavailable");
508 }
509 if (typeof api.engineDebugQuery !== "function") {
510 throw new Error("inline backend: native debug API is unavailable");
511 }
512 if (typeof api.engineDebugGetPayload !== "function") {
513 throw new Error("inline backend: native debug API is unavailable");
514 }
515 if (typeof api.engineDebugGetStats !== "function") {
516 throw new Error("inline backend: native debug API is unavailable");
517 }
518 if (typeof api.engineDebugExport !== "function") {
519 throw new Error("inline backend: native debug API is unavailable");
520 }
521 if (typeof api.engineDebugReset !== "function") {
522 throw new Error("inline backend: native debug API is unavailable");
523 }
524 return api as NativeApiWithDebug;
525 }
526
527 const backend: RuntimeBackend = {
528 async start(): Promise<void> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected