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
fix linter
  • Loading branch information
aduh95 committed Mar 14, 2020
commit a87620eba79f220949e2cc56f1e1e18c101aeae5
6 changes: 3 additions & 3 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2628,9 +2628,9 @@ changes:

Type: Documentation-only

[`process.mainModule`][] is a CommonJS-only feature while `process` global object is
shared with non-CommonJS environment. Its use within ECMAScript modules is
unsupported.
[`process.mainModule`][] is a CommonJS-only feature while `process` global
object is shared with non-CommonJS environment. Its use within ECMAScript
modules is unsupported.

It is deprecated in favor of [`require.main`][], because it serves the same
purpose and is only available on CommonJS environment.
Expand Down