esm: improve error messages for ambiguous module syntax · nodejs/node@311a04c · GitHub
Skip to content

Commit 311a04c

Browse files
mag123caduh95
authored andcommitted
esm: improve error messages for ambiguous module syntax
PR-URL: #60376 Fixes: #60322 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 7484a34 commit 311a04c

2 files changed

Lines changed: 79 additions & 8 deletions

File tree

lib/internal/modules/esm/module_job.js

Lines changed: 23 additions & 6 deletions

test/es-module/test-esm-detect-ambiguous.mjs

Lines changed: 56 additions & 2 deletions

0 commit comments

Comments
 (0)