| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 91fbad6 commit 5353110
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,11 +255,13 @@ overrides: | |||
| 255 | 255 | - ./_stream_*.js | |
| 256 | 256 | - ./_tls_common.js | |
| 257 | 257 | - ./assert/*.js | |
| 258 | + - ./child_process.js | ||
| 258 | 259 | - ./cluster.js | |
| 259 | 260 | - ./console.js | |
| 260 | 261 | - ./constants.js | |
| 261 | 262 | - ./fs.js | |
| 262 | 263 | - ./internal/assert.js | |
| 264 | + - ./internal/child_process.js | ||
| 263 | 265 | - ./internal/child_process/*.js | |
| 264 | 266 | - ./internal/cli_table.js | |
| 265 | 267 | - ./internal/cluster/*.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ const { | |||
| 89 | 89 | getValidStdio, | |
| 90 | 90 | setupChannel, | |
| 91 | 91 | ChildProcess, | |
| 92 | - stdioStringToArray | ||
| 92 | + stdioStringToArray, | ||
| 93 | 93 | } = child_process; | |
| 94 | 94 | ||
| 95 | 95 | const MAX_BUFFER = 1024 * 1024; | |
@@ -200,7 +200,7 @@ function normalizeExecArgs(command, options, callback) { | |||
| 200 | 200 | return { | |
| 201 | 201 | file: command, | |
| 202 | 202 | options: options, | |
| 203 | - callback: callback | ||
| 203 | + callback: callback, | ||
| 204 | 204 | }; | |
| 205 | 205 | } | |
| 206 | 206 | ||
@@ -255,7 +255,7 @@ const customPromiseExecFunction = (orig) => { | |||
| 255 | 255 | ObjectDefineProperty(exec, promisify.custom, { | |
| 256 | 256 | __proto__: null, | |
| 257 | 257 | enumerable: false, | |
| 258 | - value: customPromiseExecFunction(exec) | ||
| 258 | + value: customPromiseExecFunction(exec), | ||
| 259 | 259 | }); | |
| 260 | 260 | ||
| 261 | 261 | function normalizeExecFileArgs(file, args, options, callback) { | |
@@ -334,7 +334,7 @@ function execFile(file, args, options, callback) { | |||
| 334 | 334 | cwd: null, | |
| 335 | 335 | env: null, | |
| 336 | 336 | shell: false, | |
| 337 | - ...options | ||
| 337 | + ...options, | ||
| 338 | 338 | }; | |
| 339 | 339 | ||
| 340 | 340 | // Validate the timeout, if present. | |
@@ -353,7 +353,7 @@ function execFile(file, args, options, callback) { | |||
| 353 | 353 | signal: options.signal, | |
| 354 | 354 | uid: options.uid, | |
| 355 | 355 | windowsHide: !!options.windowsHide, | |
| 356 | - windowsVerbatimArguments: !!options.windowsVerbatimArguments | ||
| 356 | + windowsVerbatimArguments: !!options.windowsVerbatimArguments, | ||
| 357 | 357 | }); | |
| 358 | 358 | ||
| 359 | 359 | let encoding; | |
@@ -419,7 +419,7 @@ function execFile(file, args, options, callback) { | |||
| 419 | 419 | ex = genericNodeError(`Command failed: ${cmd}\n${stderr}`, { | |
| 420 | 420 | code: code < 0 ? getSystemErrorName(code) : code, | |
| 421 | 421 | killed: child.killed || killed, | |
| 422 | - signal: signal | ||
| 422 | + signal: signal, | ||
| 423 | 423 | }); | |
| 424 | 424 | } | |
| 425 | 425 | ||
@@ -530,7 +530,7 @@ function execFile(file, args, options, callback) { | |||
| 530 | 530 | ObjectDefineProperty(execFile, promisify.custom, { | |
| 531 | 531 | __proto__: null, | |
| 532 | 532 | enumerable: false, | |
| 533 | - value: customPromiseExecFunction(execFile) | ||
| 533 | + value: customPromiseExecFunction(execFile), | ||
| 534 | 534 | }); | |
| 535 | 535 | ||
| 536 | 536 | function copyProcessEnvToEnv(env, name, optionEnv) { | |
@@ -827,7 +827,7 @@ function spawn(file, args, options) { | |||
| 827 | 827 | function spawnSync(file, args, options) { | |
| 828 | 828 | options = { | |
| 829 | 829 | maxBuffer: MAX_BUFFER, | |
| 830 | - ...normalizeSpawnArguments(file, args, options) | ||
| 830 | + ...normalizeSpawnArguments(file, args, options), | ||
| 831 | 831 | }; | |
| 832 | 832 | ||
| 833 | 833 | debug('spawnSync', options); | |
@@ -1012,5 +1012,5 @@ module.exports = { | |||
| 1012 | 1012 | execSync, | |
| 1013 | 1013 | fork, | |
| 1014 | 1014 | spawn, | |
| 1015 | - spawnSync | ||
| 1015 | + spawnSync, | ||
| 1016 | 1016 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments