diff --git a/lib/net.js b/lib/net.js index 97e45f857c4142..1ed2e86aa2cfb8 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1060,8 +1060,7 @@ var createServerHandle = exports._createServerHandle = handle.open(fd); handle.readable = true; handle.writable = true; - return handle; - + assert(!address && !port); } else if (port === -1 && addressType === -1) { handle = createPipe(); if (process.platform === 'win32') {