Closed
Description
- Version: 7.7.2
- Platform: Linux ip-172-31-25-224 4.4.0-53-generic may be it's good idea go tell something about this fork? #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem:
net.Socket.prototype.connect
should work fine without callback (connectionListener) according to doc
but it's working like this
> (new net.Socket()).connect({ host:'google.com', port:80 })
TypeError: "listener" argument must be a function
at Socket.once (events.js:307:11)
at Socket.connect (net.js:943:10)
at repl:1:20
at ContextifyScript.Script.runInThisContext (vm.js:23:33)
at REPLServer.defaultEval (repl.js:336:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.onLine (repl.js:533:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:191:7)
related PR: #11667