Loosen shared binding tests
authorAaron Kennedy <aaron.kennedy@nokia.com>
Fri, 9 Mar 2012 10:40:44 +0000 (11:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Mar 2012 10:55:23 +0000 (12:55 +0200)
commit833336fa963b3cd9f1996d7d255098f523dfa580
tree98c74d813bbd4068392ccb46346fe9e68adad687
parent5534768481f478e93b8b3bd0f7fb0327da5af221
Loosen shared binding tests

Previously we blocked all function calls, but only because we were trying
to prevent "eval" calls from appearing in shared bindings.  Instead this
test allows function calls as long as the identifier "eval" doesn't
appear.

This also exposed a crash with v8 bindings that is also fixed.

Change-Id: I22eefd290c7b82d9c01b2cd2907a46e560ae4db9
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlexpression.cpp
src/qml/qml/qqmlexpression_p.h
src/qml/qml/qqmlrewrite.cpp
src/qml/qml/qqmlrewrite_p.h
src/qml/qml/v8/qv8bindings.cpp
src/qml/qml/v8/qv8bindings_p.h
tests/auto/qml/qqmlecmascript/data/singleV8BindingDestroyedDuringEvaluation.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qqmlproperty/data/invalidBinding.qml