diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-11-05 19:36:58 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-05 22:23:25 +0100 |
commit | ba674099d6d51e2cca19909e31a13a9d8e4490f8 (patch) | |
tree | ce2452b24c43b5c91d3c249eb661874dab78ec23 /src/qml/qml/qqmlxmlhttprequest.cpp | |
parent | 27a0d344000fedaf10b9f45c31a9cdd85df72a6b (diff) |
Fix XHR
Return after throwing an exception. Fixes the XHR autotest
Change-Id: Id3412eeb2c9867d3ad9bd64b3a81c4468c5b5bd5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r-- | src/qml/qml/qqmlxmlhttprequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index 43adce3e8c..ccbc28e9f2 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -73,7 +73,7 @@ using namespace QV4; #define V4THROW_REFERENCE(string) { \ Scoped<Object> error(scope, ctx->engine->newReferenceErrorObject(QStringLiteral(string))); \ - ctx->throwError(error); \ + return ctx->throwError(error); \ } QT_BEGIN_NAMESPACE |