Never convert the this object when calling a builtin function
authorLars Knoll <lars.knoll@digia.com>
Fri, 16 Aug 2013 18:40:03 +0000 (20:40 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 17 Aug 2013 07:26:40 +0000 (09:26 +0200)
commit0da208381f98ffd22790716a144aa5f22a5fd07e
tree0f9598c0a466cf243b78f6255b0c4be77aec3288
parent3cfc7e0c026faf70eff8e180a2df3a01b34491c0
Never convert the this object when calling a builtin function

When calling builtin methods, the this object should should be
passed unmodified to the method. This failed so far because some
of our buitin methods where implemented slightly wrong.

Change-Id: I725f4dc952b4af6101645cf702e01b5410406a92
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4arrayobject.cpp
src/qml/jsruntime/qv4functionobject.cpp
src/qml/jsruntime/qv4numberobject.cpp