|
22 | 22 | 'use strict'; |
23 | 23 |
|
24 | 24 | const util = require('util'); |
25 | | -const { |
26 | | - deprecate, convertToValidSignal, getSystemErrorName |
27 | | -} = require('internal/util'); |
| 25 | +const { convertToValidSignal, getSystemErrorName } = require('internal/util'); |
28 | 26 | const { isArrayBufferView } = require('internal/util/types'); |
29 | 27 | const debug = util.debuglog('child_process'); |
30 | 28 | const { Buffer } = require('buffer'); |
@@ -384,20 +382,6 @@ Object.defineProperty(exports.execFile, util.promisify.custom, { |
384 | 382 | value: customPromiseExecFunction(exports.execFile) |
385 | 383 | }); |
386 | 384 |
|
387 | | -const _deprecatedCustomFds = deprecate( |
388 | | - function deprecateCustomFds(options) { |
389 | | - options.stdio = options.customFds.map(function mapCustomFds(fd) { |
390 | | - return fd === -1 ? 'pipe' : fd; |
391 | | - }); |
392 | | - }, 'child_process: options.customFds option is deprecated. ' + |
393 | | - 'Use options.stdio instead.', 'DEP0006'); |
394 | | - |
395 | | -function _convertCustomFds(options) { |
396 | | - if (options.customFds && !options.stdio) { |
397 | | - _deprecatedCustomFds(options); |
398 | | - } |
399 | | -} |
400 | | - |
401 | 385 | function normalizeSpawnArguments(file, args, options) { |
402 | 386 | validateString(file, 'file'); |
403 | 387 |
|
@@ -526,8 +510,6 @@ function normalizeSpawnArguments(file, args, options) { |
526 | 510 | } |
527 | 511 | } |
528 | 512 |
|
529 | | - _convertCustomFds(options); |
530 | | - |
531 | 513 | return { |
532 | 514 | file: file, |
533 | 515 | args: args, |
|
0 commit comments