Properly propagate parse errors
authorLars Knoll <lars.knoll@digia.com>
Mon, 21 Oct 2013 07:50:27 +0000 (09:50 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 29 Oct 2013 09:38:55 +0000 (10:38 +0100)
commite0284ab41f7a1889f28e719212df66e942959f4c
treedfbd27e96968c07d49372c6ed06f0b51f2c6c8b8
parent59cc901d3d15079b3666e5902b4c8b1a83ff1fd2
Properly propagate parse errors

Replace all try/catch statements used when parsing
with checks for engine->hasException.

Change-Id: I4493cb600d5a3eb095c2003bb88bd031403e47c9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
15 files changed:
src/qml/jsapi/qjsengine.cpp
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h
src/qml/jsruntime/qv4globalobject.cpp
src/qml/jsruntime/qv4include.cpp
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4script.cpp
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/qqmljavascriptexpression.cpp
src/qml/qml/qqmltypeloader.cpp
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/qqmlxmlhttprequest.cpp
src/qml/types/qquickworkerscript.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tools/qmljs/main.cpp