Fix tst_qqmlecmascript::functionAssignment_fromJS
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Jun 2013 12:01:52 +0000 (14:01 +0200)
committerLars Knoll <lars.knoll@digia.com>
Tue, 18 Jun 2013 14:45:41 +0000 (16:45 +0200)
commit9185f1e207c8dac3f05b13f40cf79f8d3ee34ed5
treee309c59d225734389d30fb0c25ac9c4fe7943329
parent82ca7d96e95dfc505ee1a50623f913c0d2bddf30
Fix tst_qqmlecmascript::functionAssignment_fromJS

Make the test-case compile with strict mode, where function declarations
are not allowed within blocks. An alternative would be to use function
expressions here.

Change-Id: If7e1cc23ef4a0c6a83e4ba8ae03dc9c6b678730d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/data/functionAssignment.2.qml