diff options
Diffstat (limited to 'lib/internal/net.js')
-rw-r--r-- | lib/internal/net.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/internal/net.js b/lib/internal/net.js index 8f279cad16..ce8f549bdf 100644 --- a/lib/internal/net.js +++ b/lib/internal/net.js @@ -9,13 +9,6 @@ function isLegalPort(port) { return +port === (+port >>> 0) && port <= 0xFFFF; } - -function assertPort(port) { - if (typeof port !== 'undefined' && !isLegalPort(port)) - throw new RangeError('"port" argument must be >= 0 and < 65536'); -} - module.exports = { - isLegalPort, - assertPort + isLegalPort }; |