Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
juanarbol committed Sep 19, 2019
commit bf3bcf7867a186e03583c9e809bd1dfbcdcfbdab
11 changes: 6 additions & 5 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2222,11 +2222,12 @@ added: v0.9.12

* {boolean}

The `process.throwDeprecation` is a mutable property at runtime which
indicates whether the `--throw-deprecation` flag is set on the current Node.js
process. See the documentation for the [`'warning'` event][process_warning] and
the [`emitWarning()` method][process_emit_warning] for more information about
this flag's behavior.
The initial value of `process.throwDeprecation` indicates whether the
`--throw-deprecation` flag is set on the current Node.js process,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`--throw-deprecation` flag is set on the current Node.js process,
`--throw-deprecation` flag is set on the current Node.js process.

`process.throwDeprecation` is mutable, so whether or not deprecation
warnings results in an error may be altered at runtime. See the
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
warnings results in an error may be altered at runtime. See the
warnings result in errors may be altered at runtime. See the

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Trott, Thanks! Fixed on a6d19ba

documentation for the [`'warning'` event][process_warning] and the
[`emitWarning()` method][process_emit_warning] for more information.

```console
$ node --throw-deprecation -p "process.throwDeprecation"
Expand Down