From 0a97e1d2c0af5bf419e509467786a9cd75f29789 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/18892 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 b0908881b9176d..8711755b25079b 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; } }