From 1417f3878574978182b669147bc4aed6870f4838 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 7 Nov 2017 09:02:09 +0100 Subject: 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 --- src/qml/compiler/qv4compilercontext_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/compiler/qv4compilercontext_p.h') 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) -- cgit v1.2.3