From 78c240987d849412a33c89b53e0dfd464fdb7af0 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 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; } }