(err: Error)
| 281 | |
| 282 | await new Promise<void>((resolve, reject) => { |
| 283 | const onError = (err: Error) => { |
| 284 | nodeStdin.off("error", onError); |
| 285 | reject(err); |
| 286 | }; |
| 287 | nodeStdin.on("error", onError); |
| 288 | |
| 289 | nodeStdin.write(Buffer.from(chunk), (err) => { |