11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciprocess.noDeprecation = true; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciif (process.argv[2] === 'child') { 61cb0ef41Sopenharmony_ci process.emitWarning('Something else is deprecated.', 'DeprecationWarning'); 71cb0ef41Sopenharmony_ci} else { 81cb0ef41Sopenharmony_ci // parent process 91cb0ef41Sopenharmony_ci const spawn = require('child_process').spawn; 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci // spawn self as child 121cb0ef41Sopenharmony_ci const child = spawn(process.execPath, [process.argv[1], 'child']); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci child.stderr.on('data', common.mustNotCall()); 151cb0ef41Sopenharmony_ci} 16