diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-10-11 13:31:28 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-10-15 12:48:37 +0000 |
commit | c3c988e186d2c3bc2480191ed5c62acd128b5f7b (patch) | |
tree | 9807dffaf56a9977419464a9fa6a47cade1869c2 /tests/auto/qml/v4misc | |
parent | 1a1e5789c754838473cbb81665667a4d3a42e33b (diff) |
JS: Check if the rhs of an assignment had errors before using it
Change-Id: I34d70759732433b6f0ecccc5ae175d33ec8e1577
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/v4misc')
-rw-r--r-- | tests/auto/qml/v4misc/tst_v4misc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/v4misc/tst_v4misc.cpp b/tests/auto/qml/v4misc/tst_v4misc.cpp index ff04be523b..f8e76fdf5c 100644 --- a/tests/auto/qml/v4misc/tst_v4misc.cpp +++ b/tests/auto/qml/v4misc/tst_v4misc.cpp @@ -113,6 +113,7 @@ void tst_v4misc::parserMisc_data() QTest::newRow("`a${1++}`") << QString("ReferenceError: Invalid left-hand side expression in postfix operation"); QTest::newRow("for (var f in ++!binaryMathg) ;") << QString("ReferenceError: Prefix ++ operator applied to value that is not a reference."); QTest::newRow("for (va() in obj) {}") << QString("ReferenceError: Invalid left-hand side expression for 'in' expression"); + QTest::newRow("[1]=7[A=8=9]") << QString("ReferenceError: left-hand side of assignment operator is not an lvalue"); } void tst_v4misc::parserMisc() |