Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 'file://' in errors.md for ES modules #39882

Closed
wants to merge 1 commit into from

Conversation

shubhangi013
Copy link

This PR aims at resolving issue #39787.
I added a separate bullet point for the errors in ES module files.

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Aug 25, 2021
@@ -343,6 +343,7 @@ The location information will be one of:
to Node.js.
* `/absolute/path/to/file.js:line:column`, if the frame represents a call in
a user program, or its dependencies.
* `file:///absolute/path/to/file.js:line:column`, if the frame represents a call in ES module files.
Copy link
Contributor

@aduh95 aduh95 Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* `file:///absolute/path/to/file.js:line:column`, if the frame represents a call in ES module files.
* `file:///absolute/fileURL/to/file.js:line:column`, if the frame represents a
call in an ECMAScript module.

@@ -343,6 +343,7 @@ The location information will be one of:
to Node.js.
* `/absolute/path/to/file.js:line:column`, if the frame represents a call in
a user program, or its dependencies.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
a user program, or its dependencies.
a CommonJS module.

@Ayase-252 Ayase-252 mentioned this pull request Sep 18, 2021
@aduh95
Copy link
Contributor

aduh95 commented Jul 12, 2022

It looks like a fix has already landed in 1e34969. Thanks for contribution, sorry it didn't go through this time.

@aduh95 aduh95 closed this Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants