diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 14:59:47 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-21 13:30:38 +0000 |
commit | 77c22af561f49bc6a78010564d33fc86eb831519 (patch) | |
tree | 6e4c09c7f833d994c085dba8c08d6e117be6a23b /src/qml/compiler/qv4compilerscanfunctions.cpp | |
parent | 3adc6dcf5ea078c9a365a63fb99f7869fd070cc2 (diff) |
Fix handling of elisions in destructuring expressions
We need to iterator over elisions at the end, as those could
trigger side effects by calling iterator.next()
Change-Id: Ieb5fa3562b6e60fdf179fa228510b2eeaaf9da30
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilerscanfunctions.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp index 9605b72b76..e371280b55 100644 --- a/src/qml/compiler/qv4compilerscanfunctions.cpp +++ b/src/qml/compiler/qv4compilerscanfunctions.cpp @@ -184,10 +184,6 @@ bool ScanFunctions::visit(ArrayPattern *ast) ++index; ++index; } - if (ast->elision) { - for (Elision *elision = ast->elision->next; elision; elision = elision->next) - ++index; - } _context->maxNumberOfArguments = qMax(_context->maxNumberOfArguments, index); return true; } |