net: remove use of arguments in Server constructor
authorcjihrig <cjihrig@gmail.com>
Wed, 24 Sep 2014 03:08:35 +0000 (23:08 -0400)
committercjihrig <cjihrig@gmail.com>
Fri, 13 Feb 2015 18:37:25 +0000 (13:37 -0500)
commitcca8de6709ece5b4791d52a8b834da83bfb782d5
tree471018cf43ed4b1979dbb86670e6302e44888510
parent4ca7cca84a2449c29eb9eb25e71a4a730baef065
net: remove use of arguments in Server constructor

The current implementation uses the arguments object in the Server()
constructor. Since both arguments to Server() are optional, there was a
high likelihood of accessing a non-existent element in arguments, which
carries a performance overhead. This commit replaces the arguments
object with named arguments.

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Conflicts:
lib/net.js
lib/net.js