Skip to main content

throwDeprecation

// Property: throwDeprecation
// Description: The initial value of process.throwDeprecation indicates whether the --throw-deprecation flag is set on the current Node.js process. process.throwDeprecation is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning() method for more information.
// Component(s): process
'.throw-deprecation': { throwDeprecation: true }
'.throw-deprecation-false': { throwDeprecation: false }