Skip to content

Commit 4e833b6

Browse files
cjihrigaduh95
authored andcommitted
process,doc: add missing deprecation code
Refs: #36902 PR-URL: #37091 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 2e1e02a commit 4e833b6

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)