diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-27 14:19:35 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-05-27 20:35:25 +0200 |
commit | 6b5c964caaa1076c988e41c011bf766801570fdd (patch) | |
tree | 37ebe0bb891569070aa6f72e959d9bb8e0f31fc7 /src/imports | |
parent | 8a822866b68f5f425b2e1f5c793fe36acf291f4d (diff) |
Fix file and line number reporting of QML/JS errors
* Replace QUrl with QString in V4 for the source location (we don't need URL parsing)
* Replace line number and file in QV4::Exception with the information we retrieve from
the stack trace of the exception.
Fixes about five tst_qqmlecmascript tests that relied on correct file/line number information
Change-Id: I2a3daa72be6c5587fd965211ea8f6fb77142e7ee
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/testlib/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/testlib/main.cpp b/src/imports/testlib/main.cpp index 1192861856..8a751300d0 100644 --- a/src/imports/testlib/main.cpp +++ b/src/imports/testlib/main.cpp @@ -111,7 +111,7 @@ public Q_SLOTS: QVector<QV4::ExecutionEngine::StackFrame> stack = v4->stackTrace(frameIndex + 1); if (stack.size() > frameIndex) - return QQmlV4Handle(QV4::Value::fromString(v4->newString(stack.at(frameIndex).source.url()))); + return QQmlV4Handle(QV4::Value::fromString(v4->newString(stack.at(frameIndex).source))); return QQmlV4Handle(); } int callerLine(int frameIndex = 0) const |