Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123322

SyntaxError is not thrown, while parsing ESM with multiple default exports

    XMLWordPrintable

Details

    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

        For Gerrit Dashboard: QTBUG-123322
        # Subject Branch Project Status CR V

        Activity

          People

            qtqmlteam Qt Qml Team User
            dima.a Dmitrii Akshintsev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change