Commit 25702abc authored by cjihrig's avatar cjihrig Committed by Trevor Norris
Browse files

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: default avatarTrevor Norris <trev.norris@gmail.com>
parent 7c041973
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment