From d6321e346f7965ac4499fdbcb062bcc03bcf800c Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 10 Feb 2018 15:44:21 +0100 Subject: [PATCH] lib: provide proper deprecation code Refs: https://github.com/nodejs/node/pull/18513 --- lib/async_hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async_hooks.js b/lib/async_hooks.js index e7450f29acc05f..cc9e893885a9ec 100644 --- a/lib/async_hooks.js +++ b/lib/async_hooks.js @@ -145,7 +145,7 @@ function showEmitBeforeAfterWarning() { process.emitWarning( 'asyncResource.emitBefore and emitAfter are deprecated. Please use ' + 'asyncResource.runInAsyncScope instead', - 'DeprecationWarning', 'DEP00XX'); + 'DeprecationWarning', 'DEP0098'); emitBeforeAfterWarning = false; } }