Fix evaluation of lhs in binary expressions
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 24 Jan 2013 10:58:58 +0000 (11:58 +0100)
committerLars Knoll <lars.knoll@digia.com>
Thu, 24 Jan 2013 11:10:42 +0000 (12:10 +0100)
commit7afb2e22466821f1e292c8b39edb79f1fa7c4819
treec3e7d583ac08762cd2d4033c2c9abc162a8b3da3
parent8f77d5d35e9e876896357bba162aeba57f659fbe
Fix evaluation of lhs in binary expressions

The entire left hand side of a binary expression must be evaluated
before the right hand side. In case of for example

    x !== (x = 1)

it is important to generate the code for looking up "x" from the
lhs before dealing with the rhs, because this overall expression
is supposed to throw a reference error.

Change-Id: I03aee3257ff7b7a60aa789dba9f0445c387a1ad5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4codegen.cpp
tests/TestExpectations