Fix tst_qqmlecmascript::functionAssignment_afterBinding
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 13:07:24 +0000 (15:07 +0200)
committerLars Knoll <lars.knoll@digia.com>
Tue, 18 Jun 2013 14:47:32 +0000 (16:47 +0200)
commitb0cf10cf2d2b347cb68c02edb73629dbfc9b500c
tree05164939364245a5f3eb346018ffed5b55652cda
parent9185f1e207c8dac3f05b13f40cf79f8d3ee34ed5
Fix tst_qqmlecmascript::functionAssignment_afterBinding

When calling Qt.binding(f), don't modify f and set the bindingKeyFlag
there, but instead we must return a _new_ function that acts as proxy
and has the bindingKeyFlag set to true, similar to how the V8 based
implementation created a clone.

Change-Id: I4998359869c02e32c89e929793bf74a4adafcb72
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v8/qqmlbuiltinfunctions.cpp