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:
parent
9f6a565901
commit
ba944b1697
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user