diff options
Diffstat (limited to 'lib/internal/util.js')
-rw-r--r-- | lib/internal/util.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js index 7f93e1a2e0..dae45b0ebb 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -63,7 +63,10 @@ exports._deprecate = function(fn, msg) { var warned = false; function deprecated() { - warned = exports.printDeprecationMessage(msg, warned, deprecated); + if (!warned) { + warned = true; + process.emitWarning(msg, 'DeprecationWarning', deprecated); + } if (new.target) { return Reflect.construct(fn, arguments, new.target); } |