MCPcopy Create free account
hub / github.com/apache/tvm / checkCall

Method checkCall

web/src/runtime.ts:92–98  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

90 }
91
92 checkCall(code: number): void {
93 if (code != 0) {
94 const msgPtr = (this.exports
95 .TVMFFIWasmGetLastError as ctypes.FTVMFFIWasmGetLastError)();
96 throw new Error(this.memory.loadCString(msgPtr));
97 }
98 }
99
100 getOrAllocCallStack(): CachedCallStack {
101 if (this.recycledCallStacks.length != 0) {

Callers 8

disposeMethod · 0.45
registerFuncMethod · 0.45
getGlobalFuncInternalMethod · 0.45
typeKey2IndexMethod · 0.45
packedFuncMethod · 0.45
retValueToJSMethod · 0.45

Calls 1

loadCStringMethod · 0.80

Tested by

no test coverage detected