Commit 25702ab
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]>1 parent 7c04197 commit 25702ab
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
988 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
989 | 991 | | |
990 | 992 | | |
991 | 993 | | |
992 | 994 | | |
993 | | - | |
994 | | - | |
995 | | - | |
| 995 | + | |
| 996 | + | |
996 | 997 | | |
997 | | - | |
| 998 | + | |
998 | 999 | | |
999 | | - | |
| 1000 | + | |
1000 | 1001 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
| 1002 | + | |
| 1003 | + | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| |||
0 commit comments