node/lib
Juwan Yoo c6cbbf9263 net: allow missing callback for Socket.connect
Arguments of Socket.prototype.connect should be also normalized,
causing error when called without callback.

Changed Socket.prototype.connect's code same as net.connect and added
test.

Fixes: https://github.com/nodejs/node/issues/11761
PR-URL: https://github.com/nodejs/node/pull/11762
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2017-03-13 20:12:44 +08:00
..
internal crypto: fix default encoding of LazyTransform 2017-03-11 22:43:35 +01:00
.eslintrc.yaml tools: rename eslintrc to an undeprecated format 2017-01-18 09:48:52 +05:30
_debug_agent.js lib: deprecate node --debug at runtime 2017-02-10 12:41:09 -08:00
_debugger.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_agent.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_client.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_common.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_incoming.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_outgoing.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_http_server.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_linklist.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_duplex.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_passthrough.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_readable.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_transform.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_wrap.js test,lib,benchmark: match function names 2016-10-19 22:20:27 -07:00
_stream_writable.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_common.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_legacy.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_tls_wrap.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
assert.js assert: enforce type check in deepStrictEqual 2017-03-12 17:07:13 +01:00
buffer.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
child_process.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
cluster.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
console.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
constants.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
crypto.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
dgram.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
dns.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
domain.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
events.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
fs.js lib: remove sources of permanent deopts 2017-03-10 23:48:35 -05:00
http.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
https.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
module.js module: fix loading from global folders on Windows 2017-03-11 22:08:19 +00:00
net.js net: allow missing callback for Socket.connect 2017-03-13 20:12:44 +08:00
os.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
path.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
readline.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
repl.js lib: simplify Module._resolveLookupPaths 2017-03-10 23:48:59 -05:00
stream.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
string_decoder.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
sys.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timers.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
tls.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
tty.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
url.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
util.js util: throw toJSON errors when formatting %j 2017-03-10 18:22:57 -08:00
v8.js v8: add cachedDataVersionTag 2017-03-05 14:23:02 +01:00
vm.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
zlib.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00