[modules] Blame correct module for ambiguous exports.
The error got attached to the module asking for the conflicting name. This was incorrect in the case where the asking was itself via a star export. We must attach the error to the module that explicitly asks for the problematic name via a named import or named export statement. Test will be added to Chromium: https://chromium-review.googlesource.com/c/590369/ R=adamk@chromium.org Bug: v8:1569 Change-Id: Ib3c297c6c5654ed1b8f2c7b2d6525202c78f87cd Reviewed-on: https://chromium-review.googlesource.com/591307 Commit-Queue: Georg Neis <neis@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/master@{#46983}
Showing
Please
register
or
sign in
to comment