@@ -26,8 +26,8 @@ const {
2626 ERR_IPC_DISCONNECTED ,
2727 ERR_IPC_ONE_PIPE ,
2828 ERR_IPC_SYNC_FORK ,
29- ERR_MISSING_ARGS
30- }
29+ ERR_MISSING_ARGS ,
30+ } ,
3131} = require ( 'internal/errors' ) ;
3232const {
3333 validateArray,
@@ -47,7 +47,7 @@ const {
4747 kReadBytesOrError,
4848 kArrayBufferOffset,
4949 kLastWriteWasAsync,
50- streamBaseState
50+ streamBaseState,
5151} = internalBinding ( 'stream_wrap' ) ;
5252const { Pipe, constants : PipeConstants } = internalBinding ( 'pipe_wrap' ) ;
5353const { TCP } = internalBinding ( 'tcp_wrap' ) ;
@@ -70,7 +70,7 @@ const {
7070 UV_ENFILE ,
7171 UV_ENOENT ,
7272 UV_ENOSYS ,
73- UV_ESRCH
73+ UV_ESRCH ,
7474} = internalBinding ( 'uv' ) ;
7575
7676const { SocketListSend, SocketListReceive } = SocketList ;
@@ -97,7 +97,7 @@ const handleConversion = {
9797
9898 got ( message , handle , emit ) {
9999 emit ( handle ) ;
100- }
100+ } ,
101101 } ,
102102
103103 'net.Server' : {
@@ -112,7 +112,7 @@ const handleConversion = {
112112 server . listen ( handle , ( ) => {
113113 emit ( server ) ;
114114 } ) ;
115- }
115+ } ,
116116 } ,
117117
118118 'net.Socket' : {
@@ -186,7 +186,7 @@ const handleConversion = {
186186 const socket = new net . Socket ( {
187187 handle : handle ,
188188 readable : true ,
189- writable : true
189+ writable : true ,
190190 } ) ;
191191
192192 // If the socket was created by net.Server we will track the socket
@@ -195,12 +195,12 @@ const handleConversion = {
195195 // Add socket to connections list
196196 const socketList = getSocketList ( 'got' , this , message . key ) ;
197197 socketList . add ( {
198- socket : socket
198+ socket : socket ,
199199 } ) ;
200200 }
201201
202202 emit ( socket ) ;
203- }
203+ } ,
204204 } ,
205205
206206 'dgram.Native' : {
@@ -212,7 +212,7 @@ const handleConversion = {
212212
213213 got ( message , handle , emit ) {
214214 emit ( handle ) ;
215- }
215+ } ,
216216 } ,
217217
218218 'dgram.Socket' : {
@@ -230,8 +230,8 @@ const handleConversion = {
230230 socket . bind ( handle , ( ) => {
231231 emit ( socket ) ;
232232 } ) ;
233- }
234- }
233+ } ,
234+ } ,
235235} ;
236236
237237function stdioStringToArray ( stdio , channel ) {
@@ -587,7 +587,7 @@ function setupChannel(target, channel, serializationMode) {
587587 target . channel = val ;
588588 } , channelDeprecationMsg , 'DEP0129' ) ,
589589 configurable : true ,
590- enumerable : false
590+ enumerable : false ,
591591 } ) ;
592592
593593 target . _handleQueue = null ;
@@ -598,7 +598,7 @@ function setupChannel(target, channel, serializationMode) {
598598 const {
599599 initMessageChannel,
600600 parseChannelMessages,
601- writeChannelMessage
601+ writeChannelMessage,
602602 } = serialization [ serializationMode ] ;
603603
604604 let pendingHandle = null ;
@@ -784,7 +784,7 @@ function setupChannel(target, channel, serializationMode) {
784784 message = {
785785 cmd : 'NODE_HANDLE' ,
786786 type : null ,
787- msg : message
787+ msg : message ,
788788 } ;
789789
790790 if ( handle instanceof net . Socket ) {
@@ -1015,7 +1015,7 @@ function getValidStdio(stdio, sync) {
10151015 const a = {
10161016 type : stdio === 'overlapped' ? 'overlapped' : 'pipe' ,
10171017 readable : i === 0 ,
1018- writable : i !== 0
1018+ writable : i !== 0 ,
10191019 } ;
10201020
10211021 if ( ! sync )
@@ -1038,17 +1038,17 @@ function getValidStdio(stdio, sync) {
10381038 ArrayPrototypePush ( acc , {
10391039 type : 'pipe' ,
10401040 handle : ipc ,
1041- ipc : true
1041+ ipc : true ,
10421042 } ) ;
10431043 } else if ( stdio === 'inherit' ) {
10441044 ArrayPrototypePush ( acc , {
10451045 type : 'inherit' ,
1046- fd : i
1046+ fd : i ,
10471047 } ) ;
10481048 } else if ( typeof stdio === 'number' || typeof stdio . fd === 'number' ) {
10491049 ArrayPrototypePush ( acc , {
10501050 type : 'fd' ,
1051- fd : typeof stdio === 'number' ? stdio : stdio . fd
1051+ fd : typeof stdio === 'number' ? stdio : stdio . fd ,
10521052 } ) ;
10531053 } else if ( getHandleWrapType ( stdio ) || getHandleWrapType ( stdio . handle ) ||
10541054 getHandleWrapType ( stdio . _handle ) ) {
@@ -1060,7 +1060,7 @@ function getValidStdio(stdio, sync) {
10601060 type : 'wrap' ,
10611061 wrapType : getHandleWrapType ( handle ) ,
10621062 handle : handle ,
1063- _stdio : stdio
1063+ _stdio : stdio ,
10641064 } ) ;
10651065 } else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
10661066 if ( ! sync ) {
@@ -1128,5 +1128,5 @@ module.exports = {
11281128 setupChannel,
11291129 getValidStdio,
11301130 stdioStringToArray,
1131- spawnSync
1131+ spawnSync,
11321132} ;
0 commit comments