mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
doc: fix deprecation number
Refs: https://github.com/nodejs/node/pull/41872 Refs: https://github.com/nodejs/node/pull/41896 PR-URL: https://github.com/nodejs/node/pull/41990 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
This commit is contained in:
1 parent
bbd7cf7257
commit
daf8a468d5
3 files changed
+3
-3
No files matched your search
@@ -3071,7 +3071,7 @@ Type: End-of-Life
|
||||
This error code was removed due to adding more confusion to
|
||||
the errors used for value type validation.
|
||||
|
||||
### DEPXXXX: `process.on('multipleResolves', handler)`
|
||||
### DEP0160: `process.on('multipleResolves', handler)`
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
|
||||
@@ -129,7 +129,7 @@ function promiseRejectHandler(type, promise, reason) {
|
||||
const multipleResolvesDeprecate = deprecate(
|
||||
() => {},
|
||||
'The multipleResolves event has been deprecated.',
|
||||
'DEPXXXX'
|
||||
'DEP0160'
|
||||
);
|
||||
function resolveError(type, promise, reason) {
|
||||
// We have to wrap this in a next tick. Otherwise the error could be caught by
|
||||
|
||||
@@ -3,7 +3,7 @@ import { expectWarning, mustCall } from '../common/index.mjs';
|
||||
expectWarning(
|
||||
'DeprecationWarning',
|
||||
'The multipleResolves event has been deprecated.',
|
||||
'DEPXXXX',
|
||||
'DEP0160',
|
||||
);
|
||||
|
||||
process.on('multipleResolves', mustCall());
|
||||
|
||||
Reference in new issue
Block a user