Fixes to for...in statement
authorLars Knoll <lars.knoll@digia.com>
Tue, 18 Mar 2014 08:12:42 +0000 (09:12 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Mar 2014 07:14:50 +0000 (08:14 +0100)
commitcfd3eda076e81d56f985c830663ae93317b6ef8b
treeb46fd616bfbe5170fd65198a561f19d7a5f37c0e
parent4606bd668375770b8f9d84b1739c8a17cfc928d7
Fixes to for...in statement

Properly convert the argument to an object if
it's not null or undefined as mandated by the
standard.

Add a similar test case for the with statement.

Change-Id: Idd8e245e8dae4803eb0e2010e3d43bb912670444
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4isel_moth.cpp
src/qml/compiler/qv4isel_moth_p.h
src/qml/compiler/qv4isel_p.cpp
src/qml/compiler/qv4isel_p.h
src/qml/jit/qv4isel_masm.cpp
src/qml/jit/qv4isel_masm_p.h
src/qml/jit/qv4regalloc.cpp
src/qml/jsruntime/qv4runtime.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp