• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3process.noDeprecation = true;
4
5if (process.argv[2] === 'child') {
6  process.emitWarning('Something else is deprecated.', 'DeprecationWarning');
7} else {
8  // parent process
9  const spawn = require('child_process').spawn;
10
11  // spawn self as child
12  const child = spawn(process.execPath, [process.argv[1], 'child']);
13
14  child.stderr.on('data', common.mustNotCall());
15}
16