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 <ofrobots@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Ruben Bridgewater 2018-02-10 15:44:21 +01:00
parent 9f6a565901
commit ba944b1697
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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;
}
}