FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

errors: simplify ERR_REQUIRE_ESM message generation by Trott · Pull Request #35123 · nodejs/node · GitHub

/ node Public

errors: simplify ERR_REQUIRE_ESM message generation - #35123

Merged
Trott merged 1 commit into
nodejs:masterfrom
Trott:esm-no-check
Sep 11, 2020
Merged

errors: simplify ERR_REQUIRE_ESM message generation#35123
Trott merged 1 commit into
nodejs:masterfrom
Trott:esm-no-check

Conversation

Trott commented Sep 9, 2020

Copy link
Copy Markdown
Member

Because of the condition that starts the if block, we know that
parentPath must be truthy. So there is no need to check for that in
the template string that generates the error message.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

nodejs-github-bot added the errors Issues and PRs related to JavaScript errors originated in Node.js core. label Sep 9, 2020
Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 9, 2020
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 9, 2020

This comment has been minimized.

nodejs-github-bot commented Sep 9, 2020
edited by Trott
Loading

Copy link
Copy Markdown
Collaborator

Because of the condition that starts the `if` block, we know that
`parentPath` must be truthy. So there is no need to check for that in
the template string that generates the error message.

PR-URL: nodejs#35123
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>

Trott commented Sep 11, 2020

Copy link
Copy Markdown
Member Author

Landed in f54254a

Trott merged commit f54254a into nodejs:master Sep 11, 2020
Trott deleted the esm-no-check branch September 11, 2020 23:27
ruyadorno pushed a commit that referenced this pull request Sep 17, 2020
Because of the condition that starts the `if` block, we know that
`parentPath` must be truthy. So there is no need to check for that in
the template string that generates the error message.

PR-URL: #35123
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
ruyadorno mentioned this pull request Sep 21, 2020
4 tasks
MylesBorins pushed a commit that referenced this pull request Nov 3, 2020
Because of the condition that starts the `if` block, we know that
`parentPath` must be truthy. So there is no need to check for that in
the template string that generates the error message.

PR-URL: #35123
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
MylesBorins mentioned this pull request Nov 3, 2020
MylesBorins pushed a commit that referenced this pull request Nov 16, 2020
Because of the condition that starts the `if` block, we know that
`parentPath` must be truthy. So there is no need to check for that in
the template string that generates the error message.

PR-URL: #35123
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
Because of the condition that starts the `if` block, we know that
`parentPath` must be truthy. So there is no need to check for that in
the template string that generates the error message.

PR-URL: nodejs#35123
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants


Back | FazBrowse Home | New Git URL