(event: string, cb: (...args: any[]) => void)
| 324 | terminatedAt: number | null = null; |
| 325 | constructor(private loadMs: number | null) {} |
| 326 | on(event: string, cb: (...args: any[]) => void): void { |
| 327 | if (event === 'message') this.msgCb = cb; |
| 328 | else if (event === 'exit') this.exitCb = cb; |
| 329 | } |
| 330 | postMessage(msg: unknown): void { |
| 331 | if ((msg as { type: string }).type !== 'load-grammars' || this.loadMs === null) return; |
| 332 | setTimeout(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected