Skip to content

errors: simplify ERR_REQUIRE_ESM message generation

Rodrigo Muino Tomonari requested to merge github/fork/Trott/esm-no-check into master

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

Merge request reports

Loading