Skip to content

Commit

Permalink
process,doc: add missing deprecation code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cjihrig authored and aduh95 committed Jan 27, 2021
1 parent 2e1e02a commit 4e833b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/deprecations.md
Expand Up @@ -2711,7 +2711,7 @@ Type: Documentation-only.

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

### DEP0XXX: Changing the value of `process.config`
### DEP0150: Changing the value of `process.config`
<!-- YAML
changes:
- version: REPLACEME
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/node.js
Expand Up @@ -72,7 +72,7 @@ const deprecationHandler = {
warned: false,
message: 'Setting process.config is deprecated. ' +
'In the future the property will be read-only.',
code: 'DEP0XXX',
code: 'DEP0150',
maybeWarn() {
if (!this.warned) {
process.emitWarning(this.message, {
Expand Down

0 comments on commit 4e833b6

Please sign in to comment.