@@ -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' ) ;
@@ -68,7 +68,7 @@ const {
6868 UV_ENFILE ,
6969 UV_ENOENT ,
7070 UV_ENOSYS ,
71- UV_ESRCH
71+ UV_ESRCH ,
7272} = internalBinding ( 'uv' ) ;
7373
7474const { SocketListSend, SocketListReceive } = SocketList ;
@@ -95,7 +95,7 @@ const handleConversion = {
9595
9696 got ( message , handle , emit ) {
9797 emit ( handle ) ;
98- }
98+ } ,
9999 } ,
100100
101101 'net.Server' : {
@@ -110,7 +110,7 @@ const handleConversion = {
110110 server . listen ( handle , ( ) => {
111111 emit ( server ) ;
112112 } ) ;
113- }
113+ } ,
114114 } ,
115115
116116 'net.Socket' : {
@@ -184,7 +184,7 @@ const handleConversion = {
184184 const socket = new net . Socket ( {
185185 handle : handle ,
186186 readable : true ,
187- writable : true
187+ writable : true ,
188188 } ) ;
189189
190190 // If the socket was created by net.Server we will track the socket
@@ -193,12 +193,12 @@ const handleConversion = {
193193 // Add socket to connections list
194194 const socketList = getSocketList ( 'got' , this , message . key ) ;
195195 socketList . add ( {
196- socket : socket
196+ socket : socket ,
197197 } ) ;
198198 }
199199
200200 emit ( socket ) ;
201- }
201+ } ,
202202 } ,
203203
204204 'dgram.Native' : {
@@ -210,7 +210,7 @@ const handleConversion = {
210210
211211 got ( message , handle , emit ) {
212212 emit ( handle ) ;
213- }
213+ } ,
214214 } ,
215215
216216 'dgram.Socket' : {
@@ -228,8 +228,8 @@ const handleConversion = {
228228 socket . bind ( handle , ( ) => {
229229 emit ( socket ) ;
230230 } ) ;
231- }
232- }
231+ } ,
232+ } ,
233233} ;
234234
235235function stdioStringToArray ( stdio , channel ) {
@@ -580,7 +580,7 @@ function setupChannel(target, channel, serializationMode) {
580580 target . channel = val ;
581581 } , channelDeprecationMsg , 'DEP0129' ) ,
582582 configurable : true ,
583- enumerable : false
583+ enumerable : false ,
584584 } ) ;
585585
586586 target . _handleQueue = null ;
@@ -591,7 +591,7 @@ function setupChannel(target, channel, serializationMode) {
591591 const {
592592 initMessageChannel,
593593 parseChannelMessages,
594- writeChannelMessage
594+ writeChannelMessage,
595595 } = serialization [ serializationMode ] ;
596596
597597 let pendingHandle = null ;
@@ -777,7 +777,7 @@ function setupChannel(target, channel, serializationMode) {
777777 message = {
778778 cmd : 'NODE_HANDLE' ,
779779 type : null ,
780- msg : message
780+ msg : message ,
781781 } ;
782782
783783 if ( handle instanceof net . Socket ) {
@@ -1008,7 +1008,7 @@ function getValidStdio(stdio, sync) {
10081008 const a = {
10091009 type : stdio === 'overlapped' ? 'overlapped' : 'pipe' ,
10101010 readable : i === 0 ,
1011- writable : i !== 0
1011+ writable : i !== 0 ,
10121012 } ;
10131013
10141014 if ( ! sync )
@@ -1031,17 +1031,17 @@ function getValidStdio(stdio, sync) {
10311031 ArrayPrototypePush ( acc , {
10321032 type : 'pipe' ,
10331033 handle : ipc ,
1034- ipc : true
1034+ ipc : true ,
10351035 } ) ;
10361036 } else if ( stdio === 'inherit' ) {
10371037 ArrayPrototypePush ( acc , {
10381038 type : 'inherit' ,
1039- fd : i
1039+ fd : i ,
10401040 } ) ;
10411041 } else if ( typeof stdio === 'number' || typeof stdio . fd === 'number' ) {
10421042 ArrayPrototypePush ( acc , {
10431043 type : 'fd' ,
1044- fd : typeof stdio === 'number' ? stdio : stdio . fd
1044+ fd : typeof stdio === 'number' ? stdio : stdio . fd ,
10451045 } ) ;
10461046 } else if ( getHandleWrapType ( stdio ) || getHandleWrapType ( stdio . handle ) ||
10471047 getHandleWrapType ( stdio . _handle ) ) {
@@ -1053,7 +1053,7 @@ function getValidStdio(stdio, sync) {
10531053 type : 'wrap' ,
10541054 wrapType : getHandleWrapType ( handle ) ,
10551055 handle : handle ,
1056- _stdio : stdio
1056+ _stdio : stdio ,
10571057 } ) ;
10581058 } else if ( isArrayBufferView ( stdio ) || typeof stdio === 'string' ) {
10591059 if ( ! sync ) {
@@ -1121,5 +1121,5 @@ module.exports = {
11211121 setupChannel,
11221122 getValidStdio,
11231123 stdioStringToArray,
1124- spawnSync
1124+ spawnSync,
11251125} ;
0 commit comments