Skip to content
Merged
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
fixup! lib: add options to util.deprecate
  • Loading branch information
RafaelGSS committed Nov 4, 2025
commit 5ae64ea89b3b29ec33c1c2af969182d70edc68aa
4 changes: 2 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ changes:
* `code` {string} A deprecation code. See the [list of deprecated APIs][] for a
list of codes.
* `options` {Object}
* `modifyPrototype` {boolean} When true do not change the prototype of object
* `modifyPrototype` {boolean} When false do not change the prototype of object
while emitting the deprecation warning.
**Default:** `false`.
**Default:** `true`.
* Returns: {Function} The deprecated function wrapped to emit a warning.

The `util.deprecate()` method wraps `fn` (which may be a function or class) in
Expand Down
Loading