From 9065e08e41ba6dbd02d133c2ea324c37435b545f 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 Backport-PR-URL: https://github.com/nodejs/node/pull/19517 PR-URL: https://github.com/nodejs/node/pull/18694 Refs: https://github.com/nodejs/node/pull/18513 Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Colin Ihrig Reviewed-By: Jeremiah Senkpiel Reviewed-By: Luigi Pinca --- 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 d527f7ea9d69c1..d4937c33011692 100644 --- a/lib/async_hooks.js +++ b/lib/async_hooks.js @@ -149,7 +149,7 @@ function showEmitBeforeAfterWarning() { process.emitWarning( 'asyncResource.emitBefore and emitAfter are deprecated. Please use ' + 'asyncResource.runInAsyncScope instead', - 'DeprecationWarning', 'DEP00XX'); + 'DeprecationWarning', 'DEP0098'); emitBeforeAfterWarning = false; } }