Skip to content

Commit de376ce

Browse files
MoLowaduh95
andauthored
Update lib/internal/child_process.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent dc06ee0 commit de376ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/child_process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ function abortChildProcess(child, killSignal, reason) {
11431143
return;
11441144
try {
11451145
if (child.kill(killSignal)) {
1146-
child.emit('error', reason == null ? new AbortError() : new AbortError(undefined, { cause: reason }));
1146+
child.emit('error', new AbortError(undefined, arguments.length < 3 ? kEmptyObject : { cause: reason }));
11471147
}
11481148
} catch (err) {
11491149
child.emit('error', err);

0 commit comments

Comments
 (0)