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

Crash when attempting to access this keyword in a function called through a property

    XMLWordPrintable

Details

    • b2420780df98cb3c98553da18a5b1bc5b64e9e83

    Description

      Following code crashes (but not when debugger is active):

      import QtQml 2.2
      QtObject {
          function g(){console.log(this)}
          property var f: g
          Component.onCompleted: f()
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              poikelin Joni Poikelin
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes