Skip to content

Commit 546f941

Browse files
TrottBethGriggs
authored andcommitted
doc: clarify symlink resolution for __filename
Make it more explicit that symlinks are resolved in `__filename`. Refs: #22602 (comment) PR-URL: #24587 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 1c2ce23 commit 546f941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/modules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ added: v0.0.1
491491

492492
* {string}
493493

494-
The file name of the current module. This is the resolved absolute path of the
495-
current module file.
494+
The file name of the current module. This is the current module file's absolute
495+
path with symlinks resolved.
496496

497497
For a main program this is not necessarily the same as the file name used in the
498498
command line.

0 commit comments

Comments
 (0)