@@ -26,8 +26,8 @@ const {
26
26
ERR_IPC_DISCONNECTED ,
27
27
ERR_IPC_ONE_PIPE ,
28
28
ERR_IPC_SYNC_FORK ,
29
- ERR_MISSING_ARGS
30
- }
29
+ ERR_MISSING_ARGS ,
30
+ } ,
31
31
} = require ( 'internal/errors' ) ;
32
32
const {
33
33
validateArray,
@@ -47,7 +47,7 @@ const {
47
47
kReadBytesOrError,
48
48
kArrayBufferOffset,
49
49
kLastWriteWasAsync,
50
- streamBaseState
50
+ streamBaseState,
51
51
} = internalBinding ( 'stream_wrap' ) ;
52
52
const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
53
53
const { TCP } = internalBinding ( 'tcp_wrap' ) ;
@@ -68,7 +68,7 @@ const {
68
68
UV_ENFILE ,
69
69
UV_ENOENT ,
70
70
UV_ENOSYS ,
71
- UV_ESRCH
71
+ UV_ESRCH ,
72
72
} = internalBinding ( 'uv' ) ;
73
73
74
74
const { SocketListSend, SocketListReceive } = SocketList ;
@@ -95,7 +95,7 @@ const handleConversion = {
95
95
96
96
got ( message , handle , emit ) {
97
97
emit ( handle ) ;
98
- }
98
+ } ,
99
99
} ,
100
100
101
101
'net.Server' : {
@@ -110,7 +110,7 @@ const handleConversion = {
110
110
server . listen ( handle , ( ) => {
111
111
emit ( server ) ;
112
112
} ) ;
113
- }
113
+ } ,
114
114
} ,
115
115
116
116
'net.Socket' : {
@@ -184,7 +184,7 @@ const handleConversion = {
184
184
const socket = new net . Socket ( {
185
185
handle : handle ,
186
186
readable : true ,
187
- writable : true
187
+ writable : true ,
188
188
} ) ;
189
189
190
190
// If the socket was created by net.Server we will track the socket
@@ -193,12 +193,12 @@ const handleConversion = {
193
193
// Add socket to connections list
194
194
const socketList = getSocketList ( 'got' , this , message . key ) ;
195
195
socketList . add ( {
196
- socket : socket
196
+ socket : socket ,
197
197
} ) ;
198
198
}
199
199
200
200
emit ( socket ) ;
201
- }
201
+ } ,
202
202
} ,
203
203
204
204
'dgram.Native' : {
@@ -210,7 +210,7 @@ const handleConversion = {
210
210
211
211
got ( message , handle , emit ) {
212
212
emit ( handle ) ;
213
- }
213
+ } ,
214
214
} ,
215
215
216
216
'dgram.Socket' : {
@@ -228,8 +228,8 @@ const handleConversion = {
228
228
socket . bind ( handle , ( ) => {
229
229
emit ( socket ) ;
230
230
} ) ;
231
- }
232
- }
231
+ } ,
232
+ } ,
233
233
} ;
234
234
235
235
function stdioStringToArray ( stdio , channel ) {
@@ -580,7 +580,7 @@ function setupChannel(target, channel, serializationMode) {
580
580
target . channel = val ;
581
581
} , channelDeprecationMsg , 'DEP0129' ) ,
582
582
configurable : true ,
583
- enumerable : false
583
+ enumerable : false ,
584
584
} ) ;
585
585
586
586
target . _handleQueue = null ;
@@ -591,7 +591,7 @@ function setupChannel(target, channel, serializationMode) {
591
591
const {
592
592
initMessageChannel,
593
593
parseChannelMessages,
594
- writeChannelMessage
594
+ writeChannelMessage,
595
595
} = serialization [ serializationMode ] ;
596
596
597
597
let pendingHandle = null ;
@@ -777,7 +777,7 @@ function setupChannel(target, channel, serializationMode) {
777
777
message = {
778
778
cmd : 'NODE_HANDLE' ,
779
779
type : null ,
780
- msg : message
780
+ msg : message ,
781
781
} ;
782
782
783
783
if ( handle instanceof net . Socket ) {
@@ -1008,7 +1008,7 @@ function getValidStdio(stdio, sync) {
1008
1008
const a = {
1009
1009
type : stdio === 'overlapped' ? 'overlapped' : 'pipe' ,
1010
1010
readable : i === 0 ,
1011
- writable : i !== 0
1011
+ writable : i !== 0 ,
1012
1012
} ;
1013
1013
1014
1014
if ( ! sync )
@@ -1031,17 +1031,17 @@ function getValidStdio(stdio, sync) {
1031
1031
ArrayPrototypePush ( acc , {
1032
1032
type : 'pipe' ,
1033
1033
handle : ipc ,
1034
- ipc : true
1034
+ ipc : true ,
1035
1035
} ) ;
1036
1036
} else if ( stdio === 'inherit' ) {
1037
1037
ArrayPrototypePush ( acc , {
1038
1038
type : 'inherit' ,
1039
- fd : i
1039
+ fd : i ,
1040
1040
} ) ;
1041
1041
} else if ( typeof stdio === 'number' || typeof stdio . fd === 'number' ) {
1042
1042
ArrayPrototypePush ( acc , {
1043
1043
type : 'fd' ,
1044
- fd : typeof stdio === 'number' ? stdio : stdio . fd
1044
+ fd : typeof stdio === 'number' ? stdio : stdio . fd ,
1045
1045
} ) ;
1046
1046
} else if ( getHandleWrapType ( stdio ) || getHandleWrapType ( stdio . handle ) ||
1047
1047
getHandleWrapType ( stdio . _handle ) ) {
@@ -1053,7 +1053,7 @@ function getValidStdio(stdio, sync) {
1053
1053
type : 'wrap' ,
1054
1054
wrapType : getHandleWrapType ( handle ) ,
1055
1055
handle : handle ,
1056
- _stdio : stdio
1056
+ _stdio : stdio ,
1057
1057
} ) ;
1058
1058
} else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
1059
1059
if ( ! sync ) {
@@ -1121,5 +1121,5 @@ module.exports = {
1121
1121
setupChannel,
1122
1122
getValidStdio,
1123
1123
stdioStringToArray,
1124
- spawnSync
1124
+ spawnSync,
1125
1125
} ;
0 commit comments