Skip to content

Commit

Permalink
doc: deprecate top-level this
Browse files Browse the repository at this point in the history
PR-URL: #16878
Fixes: #9623
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Hackzzila authored and BridgeAR committed Feb 1, 2018
1 parent 67a4ce1 commit 300f5ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,15 @@ Type: Runtime
The [`crypto.DEFAULT_ENCODING`][] property is deprecated.
<a id="DEP00XX"></a>
### DEP00XX: Top-level `this` bound to `module.exports`
Type: Documentation-only
Assigning properties to the top-level `this` as an alternative
to `module.exports` is deprecated. Developers should use `exports`
or `module.exports` instead.
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array
Expand Down

0 comments on commit 300f5ce

Please sign in to comment.