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:
parent
123653a01a
commit
8fdd655562
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue