0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(ext/node): unimplemented code when not IPC child_process (#22488)

Fixes https://github.com/denoland/deno/issues/22299
This commit is contained in:
Divy Srivastava 2024-02-20 17:58:29 +05:30 committed by GitHub
parent 123653a01a
commit 8fdd655562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,7 +300,9 @@ export class ChildProcess extends EventEmitter {
}
/* Cancel any pending IPC I/O */
this.disconnect?.();
if (this.implementsDisconnect) {
this.disconnect?.();
}
this.killed = true;
this.signalCode = denoSignal;
@ -1148,6 +1150,7 @@ export function setupChannel(target, ipc) {
target.emit("disconnect");
});
};
target.implementsDisconnect = true;
// Start reading messages from the channel.
readLoop();