diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-11-01 10:42:48 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-01 16:05:21 +0100 |
commit | c542686675f1bdf481995a980883e706c6044e32 (patch) | |
tree | b0070a0c0f0548ceb13b9f943a330bb45b211aae /src/qml/jsruntime/qv4context.cpp | |
parent | 13ebff257cb56a32d688456634ea0ce6164232ba (diff) |
Don't assert on (++1), rather throw a ReferenceError
Also fix up the generated string for the reference error.
Change-Id: I327a8eb682017297a799f8bae650267727039616
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index 42db229c9b..ece31822b5 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -597,7 +597,7 @@ ReturnedValue ExecutionContext::throwReferenceError(const ValueRef value) ReturnedValue ExecutionContext::throwReferenceError(const QString &message, const QString &fileName, int line, int column) { Scope scope(this); - QString msg = message + QStringLiteral(" is not defined"); + QString msg = message; Scoped<Object> error(scope, engine->newReferenceErrorObject(msg, fileName, line, column)); return throwError(error); } |