aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-05 00:03:52 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-08 18:58:37 +0000
commitf284d73ccece0490b4a227c788b9415a59a38d9c (patch)
tree729d1b8ef68c941bdda322fa6dc3c17b62d1a69e /src/qml/jsruntime/qv4script.cpp
parent68a717a9cd5a5b092268eaddd3552becc55c74ab (diff)
Avoid creating a separate Scope in the ExecutionContextSaver
There's no reason this class should create a scope on it's own. Change-Id: I93bddea8be42a908a1aca1bcb0ec867aae0d29f8 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index 019fa54fb0..b771978def 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -148,7 +148,7 @@ ReturnedValue Script::run()
if (qmlContext.isUndefined()) {
TemporaryAssignment<Function*> savedGlobalCode(engine->globalCode, vmFunction);
- ExecutionContextSaver ctxSaver(valueScope);
+ ExecutionContextSaver ctxSaver(valueScope.engine);
ContextStateSaver stateSaver(valueScope, scope);
scope->d()->strictMode = vmFunction->isStrict();
scope->d()->v4Function = vmFunction;