Skip to content

Commit

Permalink
doc: fix deprecation number
Browse files Browse the repository at this point in the history
Refs: #41872
Refs: #41896

PR-URL: #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>
  • Loading branch information
aduh95 committed Feb 15, 2022
1 parent bbd7cf7 commit daf8a46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/api/deprecations.md
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/process/promises.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-warn-multipleResolves.mjs
Expand Up @@ -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());
Expand Down

0 comments on commit daf8a46

Please sign in to comment.