aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-03 13:41:13 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-04 07:08:02 +0000
commitbe70a025c19bfbfadcab957df7b1185109f5e88e (patch)
tree103bfd243bd7bd786214bac7a2d7f41fda243284 /tools
parent40aa22e0fd8234a7a71abf0ef8f42524d306e0df (diff)
Don't store the current line number in the ExecutionContext
Instead modify our StackFrame struct to hold the QV4::Function and have a linked list of those for the frames. Change-Id: I8676e16bc51a5ba6cf25a5b3423576d44e8a926a Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmljs/qmljs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmljs/qmljs.cpp b/tools/qmljs/qmljs.cpp
index 2250a501e7..05f7d6f340 100644
--- a/tools/qmljs/qmljs.cpp
+++ b/tools/qmljs/qmljs.cpp
@@ -62,7 +62,7 @@ static void showException(QV4::ExecutionContext *ctx, const QV4::Value &exceptio
}
for (const QV4::StackFrame &frame : trace) {
- std::cerr << " at " << qPrintable(frame.function) << " (" << qPrintable(frame.source);
+ std::cerr << " at " << qPrintable(frame.function()) << " (" << qPrintable(frame.source());
if (frame.line >= 0)
std::cerr << ':' << frame.line;
std::cerr << ')' << std::endl;