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

[REG: 5.11->5.12] Javascript const variables are broken in dev

    XMLWordPrintable

Details

    • 627226520a2bbb977ce32a21bdffd2004cb28796 (qt/qtdeclarative/5.12.0)

    Description

      Seems that now the value of x is undefined with latest from dev branch:

      .pragma library
      const x = 123;
      
      import QtQml 2.0
      import "js.js" as JS
      QtObject {
       Component.onCompleted: console.log(JS.x);
      }
      

      Attachments

        1. qtbug69408.tar.gz
          0.9 kB
          Joni Poikelin

        Issue Links

          Activity

            People

              juri.valdmann Jüri Valdmann (Inactive)
              poikelin Joni Poikelin
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: