Revert to non strict mode for qml expressions etc.
authorLars Knoll <lars.knoll@digia.com>
Fri, 21 Jun 2013 10:28:34 +0000 (12:28 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 21 Jun 2013 11:01:36 +0000 (13:01 +0200)
Forcing them to strict lead to too many incompatibilites
to 5.1, so let's rather leave them non strict

Change-Id: I7c3bafc9a840daa565add7abbad0d0042cdae332
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4script_p.h

index f46d300..e5e62d9 100644 (file)
@@ -57,7 +57,7 @@ struct Q_QML_EXPORT Script {
         , vmFunction(0), parseAsBinding(false) {}
     Script(ExecutionEngine *engine, Object *qml, const QString &sourceCode, const QString &source = QString(), int line = 1, int column = 0)
         : sourceFile(source), line(line), column(column), sourceCode(sourceCode)
-        , scope(engine->rootContext), strictMode(true), inheritContext(true), parsed(false)
+        , scope(engine->rootContext), strictMode(false), inheritContext(true), parsed(false)
         , qml(Value::fromObject(qml)), vmFunction(0), parseAsBinding(true) {}
     QString sourceFile;
     int line;