diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-10-11 14:56:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-11 19:39:35 +0200 |
commit | 74a02a83809f6942732ec18125403e8ee32c574f (patch) | |
tree | a8fbfd235ea7dbf3674e8e59fcfb762b8b7a9944 /src/qml/qml/ftw | |
parent | 6adb0693a2e408c388a0939e0a3d711da7b651df (diff) |
Fix failing assertion (index != -1) when trying to re-declare a function parameter
Testcase: (covered in parserstress)
function foo(x) {
var x = 42;
}
In variableDeclaration, the lookup for "x" with findMember will return -1, and
instead code for checking against arguments using indexOfArgument is needed.
The easiest fix is to simply use identifier(), which handles this accordingly.
Change-Id: I6a738d6196d4bff1fc987f111aebbaa83ed8f88f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/ftw')
0 files changed, 0 insertions, 0 deletions