Skip to content

Commit ab7e810

Browse files
committed
fixup! lib: add options to util.deprecate
1 parent 5d320f1 commit ab7e810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/util.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ changes:
245245
* `code` {string} A deprecation code. See the [list of deprecated APIs][] for a
246246
list of codes.
247247
* `options` {Object}
248-
* `modifyPrototype` {boolean} When true do not change the prototype of object
248+
* `modifyPrototype` {boolean} When false do not change the prototype of object
249249
while emitting the deprecation warning.
250-
**Default:** `false`.
250+
**Default:** `true`.
251251
* Returns: {Function} The deprecated function wrapped to emit a warning.
252252

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

0 commit comments

Comments
 (0)