Commit cca8de6
committed
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 <[email protected]>
Conflicts:
lib/net.js1 parent 4ca7cca commit cca8de6
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
995 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
996 | 998 | | |
997 | 999 | | |
998 | 1000 | | |
999 | | - | |
1000 | 1001 | | |
1001 | 1002 | | |
1002 | | - | |
| 1003 | + | |
| 1004 | + | |
1003 | 1005 | | |
1004 | | - | |
| 1006 | + | |
1005 | 1007 | | |
1006 | | - | |
| 1008 | + | |
1007 | 1009 | | |
1008 | | - | |
1009 | | - | |
| 1010 | + | |
| 1011 | + | |
1010 | 1012 | | |
1011 | 1013 | | |
1012 | 1014 | | |
| |||
0 commit comments