MCPcopy Create free account
hub / github.com/esengine/esengine / onError

Method onError

packages/platform-wechat/src/WeChatAdapter.ts:48–52  ·  view source on GitHub ↗
(handler: (error: ErrorEvent) => void)

Source from the content-addressed store, hash-verified

46 }
47
48 onError(handler: (error: ErrorEvent) => void): void {
49 this._worker.onError((error) => {
50 handler(error as unknown as ErrorEvent);
51 });
52 }
53
54 terminate(): void {
55 this._worker.terminate();

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
onErrorMethod · 0.65

Tested by

no test coverage detected