diff --git a/experimentalWarning.js b/experimentalWarning.js index 27003face2..78e841495b 100644 --- a/experimentalWarning.js +++ b/experimentalWarning.js @@ -10,4 +10,8 @@ function emitExperimentalWarning(feature) { process.emitWarning(msg, 'ExperimentalWarning'); } -module.exports.emitExperimentalWarning = emitExperimentalWarning; +function noop() {} + +module.exports.emitExperimentalWarning = process.emitWarning + ? emitExperimentalWarning + : noop;