Skip to content

Commit d507a49

Browse files
committed
doc: fix deprecation number
Refs: nodejs#41872 Refs: nodejs#41896
1 parent e0fa7e0 commit d507a49

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/api/deprecations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3071,7 +3071,7 @@ Type: End-of-Life
30713071
This error code was removed due to adding more confusion to
30723072
the errors used for value type validation.
30733073

3074-
### DEPXXXX: `process.on('multipleResolves', handler)`
3074+
### DEP0160: `process.on('multipleResolves', handler)`
30753075

30763076
<!-- YAML
30773077
changes:

lib/internal/process/promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function promiseRejectHandler(type, promise, reason) {
129129
const multipleResolvesDeprecate = deprecate(
130130
() => {},
131131
'The multipleResolves event has been deprecated.',
132-
'DEPXXXX'
132+
'DEP0160'
133133
);
134134
function resolveError(type, promise, reason) {
135135
// We have to wrap this in a next tick. Otherwise the error could be caught by

test/parallel/test-warn-multipleResolves.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expectWarning, mustCall } from '../common/index.mjs';
33
expectWarning(
44
'DeprecationWarning',
55
'The multipleResolves event has been deprecated.',
6-
'DEPXXXX',
6+
'DEP0160',
77
);
88

99
process.on('multipleResolves', mustCall());

0 commit comments

Comments
 (0)