doc: clarify symlink resolution for __filename
Make it more explicit that symlinks are resolved in `__filename`. Refs: https://github.com/nodejs/node/issues/22602#issuecomment-440906602 PR-URL: https://github.com/nodejs/node/pull/24587 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
4b086141b3
commit
bb04a8bbf2
@ -491,8 +491,8 @@ added: v0.0.1
|
|||||||
|
|
||||||
* {string}
|
* {string}
|
||||||
|
|
||||||
The file name of the current module. This is the resolved absolute path of the
|
The file name of the current module. This is the current module file's absolute
|
||||||
current module file.
|
path with symlinks resolved.
|
||||||
|
|
||||||
For a main program this is not necessarily the same as the file name used in the
|
For a main program this is not necessarily the same as the file name used in the
|
||||||
command line.
|
command line.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user