aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4arrayobject.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2025-05-22 11:57:34 +0200
committerUlf Hermann <ulf.hermann@qt.io>2025-06-27 11:41:07 +0000
commita4aee687762ffafda800e16f03797f6aebff4fd8 (patch)
tree9a265f2c2d324183d9f8aff6bbd4a8e8cabf678b /src/qml/jsruntime/qv4arrayobject.cpp
parentfc0bf5a9fd077da6e5d0943d1edae0140ea23a10 (diff)
qmllint: Catch JS variable declarations in QML elements
JS variable declarations in a QML element are not allowed. The engine rejects them in the IR builder. As the linter doesn't run this part of the compilation pipeline, it would never report the issue. This commit fixes the issue by adding the necessary check. It also avoids an assert in insertJSIdentifier when assertions are enabled. Fixes: QTBUG-137030 Pick-to: 6.10 6.9 6.8 Change-Id: Iff7a6e02bf852cf3a9affcac6ec40b7bd98cda83 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
0 files changed, 0 insertions, 0 deletions