Fix ch12/12.2/12.2.1/12.2.1-21-s
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 22 Mar 2013 11:15:19 +0000 (12:15 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 23 Mar 2013 18:16:47 +0000 (19:16 +0100)
commite2ae9ddf6d619e10b7f7040f4d37e3e44799a56e
tree4b1be08518ed3f818c1b78a3a9c653bb5e40e676
parent507fc52f0780756c6b3c83a00f40262b337061b5
Fix ch12/12.2/12.2.1/12.2.1-21-s

(indirect eval call writing to arguments should not throw type error)

Correctly propagate needsActivation, usesArgumentsObject and strictMode from
the parsed eval code to the ScriptFunction before creating the call context.
Also don't let the qml activation object overwrite an existing one unless
provided.

Change-Id: Ia92e9c40f947cbe09984fca6ecb0d1e03205ff51
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4globalobject.cpp