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

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

XMLWordPrintable

    • 627226520a2bbb977ce32a21bdffd2004cb28796 (qt/qtdeclarative/5.12.0)

      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);
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved: