From 99783cd6dec326058b8db345145b1f8f71cfb6f0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 5 Aug 2017 00:15:44 +0200 Subject: Completely avoid intermediate scopes for simple functions Change-Id: I1fe2ff987e79cf590ad5ad3fc520b17925f8b616 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmljavascriptexpression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmljavascriptexpression.cpp') diff --git a/src/qml/qml/qqmljavascriptexpression.cpp b/src/qml/qml/qqmljavascriptexpression.cpp index aa5fe5a225..e00c8d30be 100644 --- a/src/qml/qml/qqmljavascriptexpression.cpp +++ b/src/qml/qml/qqmljavascriptexpression.cpp @@ -227,9 +227,9 @@ QV4::ReturnedValue QQmlJavaScriptExpression::evaluate(QV4::CallData *callData, b QV4::ExecutionContext *outer = static_cast(m_qmlScope.valueRef()); if (v4Function->canUseSimpleFunction()) { - result = outer->simpleCall(scope, callData, v4Function); + result = outer->simpleCall(scope.engine, callData, v4Function); } else { - result = outer->call(scope, callData, v4Function); + result = outer->call(scope.engine, callData, v4Function); } if (scope.hasException()) { -- cgit v1.2.3