aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4debugging.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-11-27 15:18:41 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-19 16:30:05 +0100
commit0eac5a4938affdb930201df8be91cb9b6e1c93ac (patch)
treee8045867a15d87a61d9ed4e2ae2e697fab0e5a37 /src/qml/jsruntime/qv4debugging.cpp
parenta0c81e29713f991afa0a2442a7ca3b095ad97c2a (diff)
Make ExecutionContextSaver GC safe
Change-Id: I29f00366d24c770afe4ba4579106d81a8c9043df Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-rw-r--r--src/qml/jsruntime/qv4debugging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp
index 4299af7112..ca5af36f1c 100644
--- a/src/qml/jsruntime/qv4debugging.cpp
+++ b/src/qml/jsruntime/qv4debugging.cpp
@@ -65,7 +65,7 @@ public:
{
Scope scope(engine);
- ExecutionContextSaver saver(engine->currentContext());
+ ExecutionContextSaver saver(scope, engine->currentContext());
Value *savedContexts = scope.alloc(frameNr);
for (int i = 0; i < frameNr; ++i) {
@@ -73,7 +73,7 @@ public:
engine->popContext();
}
- ExecutionContext *ctx = engine->currentContext();
+ ScopedContext ctx(scope, engine->currentContext());
QV4::Script script(ctx, this->script);
script.strictMode = ctx->d()->strictMode;
// In order for property lookups in QML to work, we need to disable fast v4 lookups. That