Fix syntax error propagation
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Jun 2013 15:03:01 +0000 (17:03 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 13 Jun 2013 06:51:52 +0000 (08:51 +0200)
commitebc31ca3c4a6a49c274f82af52a2e1b6cace30b7
tree5e80ad3dacc2aad47289d577994a58e875dce3d7
parentb8f92eef13b30a6ddf3a6e5dbf1a89b5e24cfdc7
Fix syntax error propagation

For syntax errors we use the DiagnosticMessage type in qv4context.cpp,
that contains detailed information about the error. We must catch that
error correctly in QQmlVME::run and report it to the engine.

Change-Id: I8f53c7db8dbdc6afa72396f3c25537690a6f5841
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmlvme.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp