aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmljavascriptexpression.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-05 00:15:44 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-08 18:58:42 +0000
commit99783cd6dec326058b8db345145b1f8f71cfb6f0 (patch)
treec0daf2d2947cbd224a35f227cd41e79f1d0390cf /src/qml/qml/qqmljavascriptexpression.cpp
parentf284d73ccece0490b4a227c788b9415a59a38d9c (diff)
Completely avoid intermediate scopes for simple functions
Change-Id: I1fe2ff987e79cf590ad5ad3fc520b17925f8b616 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression.cpp')
-rw-r--r--src/qml/qml/qqmljavascriptexpression.cpp4
1 files changed, 2 insertions, 2 deletions
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<QV4::ExecutionContext *>(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()) {