diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index 3582383ad1..f2d961ee06 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -87,7 +87,7 @@ const handleConversion = { // remove handle from socket object, it will be closed when the socket // will be sent if (!options.keepOpen) { - handle.onread = function() {}; + handle.onread = nop; socket._handle = null; }