Don't rewrite the body of function expressions
authorRoberto Raggi <roberto.raggi@nokia.com>
Fri, 25 May 2012 07:45:24 +0000 (09:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 09:32:45 +0000 (11:32 +0200)
commitd00fbd043e53913bc64148f3207571d85f661a30
treed3c95888c28544852027a765584cd2aef10749fe
parent70dee431e82aa4596aa993570120ab9afc7b608b
Don't rewrite the body of function expressions

That is, don't look inside function expressions when rewriting
bindings as closures.

Task-number: QTBUG-25901
Change-Id: Ia4b99d3c58c4482e9505cf2461bd14942a9a00ca
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/qml/qml/qqmlrewrite.cpp
src/qml/qml/qqmlrewrite_p.h
tests/auto/qml/qqmlecmascript/data/propertyQJSValue.16.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/propertyVar.16.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp