aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-05-27 14:19:35 +0200
committerLars Knoll <lars.knoll@digia.com>2013-05-27 20:35:25 +0200
commit6b5c964caaa1076c988e41c011bf766801570fdd (patch)
tree37ebe0bb891569070aa6f72e959d9bb8e0f31fc7 /tools
parent8a822866b68f5f425b2e1f5c793fe36acf291f4d (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 'tools')
-rw-r--r--tools/v4/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index ead057c86a..33c5ad7365 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -142,7 +142,7 @@ static void showException(QV4::ExecutionContext *ctx, const QV4::Exception &exce
}
foreach (const QV4::ExecutionEngine::StackFrame &frame, exception.stackTrace()) {
- std::cerr << " at " << qPrintable(frame.function) << " (" << qPrintable(frame.source.toLocalFile());
+ std::cerr << " at " << qPrintable(frame.function) << " (" << qPrintable(frame.source);
if (frame.line >= 0)
std::cerr << ":" << frame.line;
std::cerr << ")" << std::endl;