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 <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
  • Loading branch information
aduh95 authored 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.