Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15, 6.0, 6.1
-
7ea690c61dabd2485e80e7fae9aed392ba02c846 (qt/qtdeclarative/dev) b1e47b795e09a7834783a7418468f3cd184ef082 (qt/qtdeclarative/6.0) 703f41d5a51aacf4d481f49daea2b68d9ad5a797 (qt/qtdeclarative/6.1) 18b1e8266f (qt/tqtc-qtdeclarative/5.15-opensource)
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
- resulted from
-
QTBUG-91481 Generator functions can't access properties
- Closed