process: backport process.emitWarning() API
Backport of the process.emitWarning()
API to Node.js 4.x
Includes:
- The
process.emitWarning()
method - The
--no-warnings
and--trace-warnings
command line flags - The
NODE_NO_WARNINGS
environment variable - The
--redirect-warnings=file
command line flag - The
NODE_REDIRECT_WARNINGS
environment variable
This does not change any of the existing deprecation or warning notices emitted by Node.js itself as that would be a breaking semver-major change. Accordingly, the command line flags and environment variables have no impact on deprecation warnings.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
process