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

    • b2420780df98cb3c98553da18a5b1bc5b64e9e83

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

        For Gerrit Dashboard: QTBUG-59357
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes