aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compilercontext_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-11-07 09:02:09 +0100
committerLars Knoll <lars.knoll@qt.io>2017-11-15 18:46:49 +0000
commit1417f3878574978182b669147bc4aed6870f4838 (patch)
treeea9fb28b2f1e4880cbeed4cbf18f21e787de0fd1 /src/qml/compiler/qv4compilercontext_p.h
parent6b738e3224c26fcce148b569188e2a25520e54d6 (diff)
Don't create a CallContext if arguments are being used in strict mode
The strict arguments object doesn't need a callcontext. Change-Id: I1d6419c456b28741167f76937906faffd2d5d3b4 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilercontext_p.h')
-rw-r--r--src/qml/compiler/qv4compilercontext_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilercontext_p.h b/src/qml/compiler/qv4compilercontext_p.h
index 0b7ac1fb0c..3db30ea23d 100644
--- a/src/qml/compiler/qv4compilercontext_p.h
+++ b/src/qml/compiler/qv4compilercontext_p.h
@@ -218,7 +218,7 @@ struct Context {
return nestedContexts.isEmpty() &&
locals.isEmpty() &&
!hasTry && !hasWith &&
- usesArgumentsObject == ArgumentsObjectNotUsed && !hasDirectEval;
+ (usesArgumentsObject == ArgumentsObjectNotUsed || isStrict) && !hasDirectEval;
}
int findArgument(const QString &name)