Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e819685

Browse filesBrowse files
thebergamotargos
authored andcommitted
doc: include stack trace difference in ES modules
This change highlights in the docs difference between stack traces for CommonJS modules and ES Modules. Fixes: #39787 PR-URL: #41157 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5ed8a1c commit e819685
Copy full SHA for e819685

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@ The location information will be one of:
344344
* `plain-filename.js:line:column`, if the frame represents a call internal
345345
to Node.js.
346346
* `/absolute/path/to/file.js:line:column`, if the frame represents a call in
347-
a user program, or its dependencies.
347+
a user program (using CommonJS module system), or its dependencies.
348+
* `<transport-protocol>:///url/to/module/file.mjs:line:column`, if the frame
349+
represents a call in a user program (using ES module system), or
350+
its dependencies.
348351

349352
The string representing the stack trace is lazily generated when the
350353
`error.stack` property is **accessed**.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.