Skip to content

Commit 5cf6430

Browse files
committed
process,doc: add missing deprecation code
Refs: nodejs#36902
1 parent 7016c61 commit 5cf6430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/deprecations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2711,7 +2711,7 @@ Type: Documentation-only.
27112711

27122712
Prefer [`message.socket`][] over [`message.connection`][].
27132713

2714-
### DEP0XXX: Changing the value of `process.config`
2714+
### DEP0150: Changing the value of `process.config`
27152715
<!-- YAML
27162716
changes:
27172717
- version: REPLACEME

lib/internal/bootstrap/node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const deprecationHandler = {
7272
warned: false,
7373
message: 'Setting process.config is deprecated. ' +
7474
'In the future the property will be read-only.',
75-
code: 'DEP0XXX',
75+
code: 'DEP0150',
7676
maybeWarn() {
7777
if (!this.warned) {
7878
process.emitWarning(this.message, {

0 commit comments

Comments
 (0)