From f284d73ccece0490b4a227c788b9415a59a38d9c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 5 Aug 2017 00:03:52 +0200 Subject: 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 --- src/qml/jsruntime/qv4script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4script.cpp') 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 savedGlobalCode(engine->globalCode, vmFunction); - ExecutionContextSaver ctxSaver(valueScope); + ExecutionContextSaver ctxSaver(valueScope.engine); ContextStateSaver stateSaver(valueScope, scope); scope->d()->strictMode = vmFunction->isStrict(); scope->d()->v4Function = vmFunction; -- cgit v1.2.3