File tree 1 file changed +16
-18
lines changed
1 file changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -64,32 +64,30 @@ const {
64
64
onStreamRead,
65
65
kUpdateTimer
66
66
} = require ( 'internal/stream_base_commons' ) ;
67
- const errors = require ( 'internal/errors' ) ;
68
67
const {
69
- ERR_INVALID_ADDRESS_FAMILY ,
70
- ERR_INVALID_ARG_TYPE ,
71
- ERR_INVALID_ARG_VALUE ,
72
- ERR_INVALID_FD_TYPE ,
73
- ERR_INVALID_IP_ADDRESS ,
74
- ERR_INVALID_OPT_VALUE ,
75
- ERR_SERVER_ALREADY_LISTEN ,
76
- ERR_SERVER_NOT_RUNNING ,
77
- ERR_SOCKET_BAD_PORT ,
78
- ERR_SOCKET_CLOSED
79
- } = errors . codes ;
68
+ codes : {
69
+ ERR_INVALID_ADDRESS_FAMILY ,
70
+ ERR_INVALID_ARG_TYPE ,
71
+ ERR_INVALID_ARG_VALUE ,
72
+ ERR_INVALID_FD_TYPE ,
73
+ ERR_INVALID_IP_ADDRESS ,
74
+ ERR_INVALID_OPT_VALUE ,
75
+ ERR_SERVER_ALREADY_LISTEN ,
76
+ ERR_SERVER_NOT_RUNNING ,
77
+ ERR_SOCKET_BAD_PORT ,
78
+ ERR_SOCKET_CLOSED
79
+ } ,
80
+ errnoException,
81
+ exceptionWithHostPort,
82
+ uvExceptionWithHostPort
83
+ } = require ( 'internal/errors' ) ;
80
84
const { validateInt32, validateString } = require ( 'internal/validators' ) ;
81
85
const kLastWriteQueueSize = Symbol ( 'lastWriteQueueSize' ) ;
82
86
83
87
// Lazy loaded to improve startup performance.
84
88
let cluster ;
85
89
let dns ;
86
90
87
- const {
88
- errnoException,
89
- exceptionWithHostPort,
90
- uvExceptionWithHostPort
91
- } = errors ;
92
-
93
91
const {
94
92
kTimeout,
95
93
setUnrefTimeout,
You can’t perform that action at this time.
0 commit comments