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:
Antoine du Hamel authored and GitHub committed 2022-02-15 19:55:56 +01:00
1 parent bbd7cf7257
commit daf8a468d5
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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());