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

v8 alias resolution is not dynamic

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes