Fix AND expression in v4
authorLuis Gabriel Lima <luis.gabriel@openbossa.org>
Thu, 8 Mar 2012 02:24:18 +0000 (23:24 -0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Mar 2012 09:26:52 +0000 (10:26 +0100)
commitb7f3138957ced630aca98ecb63acf873e7d2d103
tree3e703577fdf77eefd3b26a4a499b22f445e32ba1
parent4cd2f0bb2ff262bafb09eae23db919714858e4a2
Fix AND expression in v4

The type of the and expressions, e.g. (a && b), were being assigned
to the type of the right hand expression (b). As reported in
QTBUG-24660, this approach could lead to some unexpected behaviors.

Now, when the left and right hand expressions are of different types,
the responsability to deal with the and expression is delegated to v8.

Task-number: QTBUG-24660
Change-Id: Ic42ebb035e62e2f197c337b2106d00453a99f04c
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
src/qml/qml/v4/qv4irbuilder.cpp
tests/auto/qml/v4/data/logicalAnd.2.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.3.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.4.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.5.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.6.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.7.qml [new file with mode: 0644]
tests/auto/qml/v4/data/logicalAnd.qml [new file with mode: 0644]
tests/auto/qml/v4/data/nestedLogicalAnd.qml [new file with mode: 0644]
tests/auto/qml/v4/tst_v4.cpp