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

Crash in Generator::method_next when creating new properties on Generator

    XMLWordPrintable

    Details

    • Commits:
      7ea690c61dabd2485e80e7fae9aed392ba02c846 (qt/qtdeclarative/dev) b1e47b795e09a7834783a7418468f3cd184ef082 (qt/qtdeclarative/6.0) 703f41d5a51aacf4d481f49daea2b68d9ad5a797 (qt/qtdeclarative/6.1)

      Description

      import QtQuick 2.15
      
      Rectangle {
         id: fileContainer
         property real a: 42 
         property real b: 0
      
         function f(myfunc) {
            let gen = myfunc();
            gen["u"] = 0
            console.log(gen.next().value)
         }
      
         function refreshA() {
            f(function*() { b= 12; return a });
         }
      
         TapHandler {
            onTapped:() => {fileContainer.refreshA(); console.log(fileContainer.b)}
         }
      }
      

      leads to a crash.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              max.goldstein Maximilian Goldstein
              Reporter:
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes