Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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