Allow return statement when parsing bindings
authorLars Knoll <lars.knoll@digia.com>
Sun, 2 Jun 2013 14:58:01 +0000 (16:58 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Sun, 2 Jun 2013 16:27:46 +0000 (18:27 +0200)
commit526d604c23fce27b85906ae11f772c00ae8b14e2
tree418a9f8c4bba6bddf77180a874f9e714fa3c0fca
parent4b454fbefcd433839b23612dec3270d5e3a63827
Allow return statement when parsing bindings

An explicit return statement was allowed in bindings with v8 (as
they were rewritten as function closures. There's no reason to forbid them
now.

Fixes two tests in qqmlecmascript.

Change-Id: I27a6f88d17d8c35b37735ad321b7607f09b1e67c
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4codegen.cpp
src/qml/qml/v4/qv4codegen_p.h
src/qml/qml/v4/qv4script.cpp
src/qml/qml/v4/qv4script_p.h