★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/24196/filesNouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add process no deprecation #24196

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+15 −0
Diff settings

Always

Just for now

@@ -0,0 +1,15 @@
'use strict';
const common = require('../common');
process.noDeprecation = true;

if (process.argv[2] === 'child') {
process.emitWarning('Something else is deprecated.', 'DeprecationWarning');
} else {
// parent process
const spawn = require('child_process').spawn;

// spawn self as child
const child = spawn(process.execPath, [process.argv[1], 'child']);

child.stderr.on('data', common.mustNotCall());
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.