Files
node/lib
Denys Otrishko 78ca61e2cf net: check args in net.connect() and socket.connect() calls
Previously Node.js would handle empty `net.connect()` and
`socket.connect()` call as if the user passed empty options object which
doesn't really make sense. This was due to the fact that it uses the
same `normalizeArgs` function as `.listen()` call where such call is
perfectly fine.

This will make it clear what is the problem with such call and how it
can be resolved. It now throws `ERR_MISSING_ARGS` if no arguments were
passed or neither `path` nor `port` is specified.

Fixes: https://github.com/nodejs/node/issues/33930

PR-URL: https://github.com/nodejs/node/pull/34022
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
2020-06-24 14:45:10 -07:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-06-22 14:29:49 -07:00
2020-06-07 12:14:49 +02:00
2020-05-27 10:24:05 +02:00
2019-12-17 08:11:13 -05:00
2020-06-02 15:38:59 +02:00
2020-05-23 20:47:02 +02:00
2020-06-19 07:40:11 -07:00
2020-05-16 06:42:16 +02:00
2020-06-19 17:37:26 +02:00
2020-06-23 17:08:09 -07:00
2020-06-23 09:14:28 +00:00
2020-05-30 17:24:43 -04:00
2020-03-09 12:44:16 +01:00
2020-04-28 19:10:26 +02:00
2020-05-20 17:05:06 +02:00
2020-05-30 17:24:43 -04:00
2020-06-22 14:29:49 -07:00
2019-12-11 16:38:06 -06:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
2020-06-09 17:26:10 +02:00