Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.0
-
None
Description
Trying to modify a read-only array-like property does not yield an error.
import QtQuick 2.0 Item { Component.onCompleted: { var args = Qt.application.arguments console.log("Before:", args); console.log(args.push("should emit an error?")); console.log("After:", args); } }
Resulting log:
qml: Before: qmlscene,pushtest.qml qml: 3 qml: After: qmlscene,pushtest.qml