Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.7.0 RC
-
None
Description
While working on the QTBUG-117849 it was discovered that Neither Parser nor JSEngine throw a SyntaxError when parsing / importing ESM containing multiple default exports.
https://codereview.qt-project.org/c/qt/qtdeclarative/+/547817
SyntaxError should be thrown acc. to the standard
The duplicate ExportedNames rule implies that multiple export default ExportDeclaration items within a ModuleBody is a Syntax Error.
https://262.ecma-international.org/7.0/#sec-module-semantics-static-semantics-early-errors
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-123322 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
547817,2 | WIP: QQmlJS::Parser and QQmlJS::Engine allow multiple default exports | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |