(cmd: string, ...args: unknown[])
| 112 | } |
| 113 | |
| 114 | async request<T = unknown>(cmd: string, ...args: unknown[]): Promise<T> { |
| 115 | if (!this.ready || this.stopping) throw new Error('BytecodeCompiler is not ready; await start() first') |
| 116 | return this.sendRequest(cmd, args) as Promise<T> |
| 117 | } |
| 118 | |
| 119 | private sendRequest(cmd: string, args: unknown[]): Promise<unknown> { |
| 120 | const ps = this.ps |