diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-06-18 13:17:01 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-18 13:49:44 +0200 |
commit | 9262851159ff4705a5dc19b75682af14b056219f (patch) | |
tree | 6ec31932e27cd07cbe42e9604546e1817427ccba /src/qml/qml/qqmljavascriptexpression.cpp | |
parent | 1075939a2b040aec3f63a20f27e4f9e502eabc97 (diff) |
Fix two more errors in the worker script auto test
Change-Id: Ib1359a985efae18cd4fc8344b81092af57f1a9d4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression.cpp')
-rw-r--r-- | src/qml/qml/qqmljavascriptexpression.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression.cpp b/src/qml/qml/qqmljavascriptexpression.cpp index 820e5002ed..85f2f2a001 100644 --- a/src/qml/qml/qqmljavascriptexpression.cpp +++ b/src/qml/qml/qqmljavascriptexpression.cpp @@ -86,6 +86,7 @@ void QQmlDelayedError::setError(const QV4::Exception &e) QV4::ExecutionEngine::StackFrame frame = trace.first(); m_error.setUrl(QUrl(frame.source)); m_error.setLine(frame.line); + m_error.setColumn(frame.column); } m_error.setColumn(-1); @@ -306,7 +307,7 @@ void QQmlJavaScriptExpression::exceptionToError(const QV4::Exception &e, QQmlErr QV4::ExecutionEngine::StackFrame frame = trace.first(); error.setUrl(QUrl(frame.source)); error.setLine(frame.line); - error.setColumn(-1); + error.setColumn(frame.column); } error.setDescription(e.value().toQString()); } |