MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / hasMessage

Function hasMessage

test/util.ts:559–559  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

557 result = vm.runInContext(this.getJsCodeWithWrapper(), globalContext);
558 } catch (error) {
559 const hasMessage = (error: any): error is { message: string } => error.message !== undefined;
560 assert(hasMessage(error));
561 return new ExecutionError(error.message);
562 }

Callers 1

executeJsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected