MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / captureThrown

Function captureThrown

packages/agent-core/test/base/common/event.test.ts:14–21  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

12});
13
14function captureThrown(fn: () => void): unknown {
15 try {
16 fn();
17 return undefined;
18 } catch (error) {
19 return error;
20 }
21}
22
23describe('Emitter / Event', () => {
24 it('fire delivers to all listeners in subscribe order', () => {

Callers 1

event.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected