aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-07 11:46:41 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-10 08:18:26 +0000
commit026ec5feee4d6fac4d7b0530fce6da649a1ee27d (patch)
treeaddc54b9e8697334dd732891404c898dd7a85cd5 /src/qml/jsapi
parent475f4559d97dca4e85e6601f77593b354193393d (diff)
Reduce usage of the strictMode flag in ExecutionContext
The goal is to completely get rid of it, and replace it by calling strict/sloppy versions of runtime functions in the generated code. Change-Id: Icd516d924136109abaf0dc9f3ef0e771a709485d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r--src/qml/jsapi/qjsengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp
index 1c7540778b..6eede17ab4 100644
--- a/src/qml/jsapi/qjsengine.cpp
+++ b/src/qml/jsapi/qjsengine.cpp
@@ -446,7 +446,7 @@ QJSValue QJSEngine::evaluate(const QString& program, const QString& fileName, in
QV4::ScopedValue result(scope);
QV4::Script script(ctx, program, fileName, lineNumber);
- script.strictMode = ctx->d()->strictMode;
+ script.strictMode = ctx->d()->v4Function->isStrict();
script.inheritContext = true;
script.parse();
if (!scope.engine->hasException)