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

v8 alias resolution is not dynamic

XMLWordPrintable

      Following QTBUG-24891, I would expect the following files to produce the same output as the example for that bug:

      main.qml
      import QtQuick 2.0
      
      MyItem {
          property int myprop: 10
      }
      
      MyItem.qml
      import QtQuick 2.0
      
      Item {
          id: self
          property string myprop: "hello world"
          property alias result: self.myprop
          Component.onCompleted: console.log(myprop + " " + result)
          //'normal' result:              10 hello world
          //QML_DISABLE_OPTIMIZER result: 10 hello world
      }
      

      In fact, the alias resolution is not dynamic, and v8 produces the same output as v4.

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

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes