diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-12-18 14:57:57 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-12-20 13:05:00 +0100 |
| commit | 413e9f9cde4b2e7661c895c29ef1d087763af911 (patch) | |
| tree | 4adcb3ded25b2714c8dfa34b01b9037e607a6351 /src/qml/compiler/qv4codegen.cpp | |
| parent | 66ea7d6de2ae295821a95b3c3619ad03d5b7f10b (diff) | |
QtQml: Do optional chain finalization also on string-y element lookup
Amends commit 86c48761dc7ba5bcac7dc6740e94efbfb8678403.
Pick-to: 6.7
Fixes: QTBUG-120168
Change-Id: I5848d8394498bafb1e897eca865d405224eaf997
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
| -rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp index 281924fe2c..a43ec897e5 100644 --- a/src/qml/compiler/qv4codegen.cpp +++ b/src/qml/compiler/qv4codegen.cpp @@ -1294,6 +1294,7 @@ bool Codegen::visit(ArrayMemberExpression *ast) ast->isOptional, &m_optionalChainsStates.top().jumpsToPatch); setExprResult(ref); + optionalChainFinalizer(ref, isTailOfChain); return false; } |
