Deprecate the with statement in QML
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 29 May 2013 09:14:51 +0000 (11:14 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 31 May 2013 13:09:42 +0000 (15:09 +0200)
commitd818575966e2e2000fe2b7ee390c620f595d9825
tree262a734cee3a639e0f94b4ee986cc778f7918207
parent474895df9c171964ec2170c1066fb0fef4fda7d2
Deprecate the with statement in QML

It is generally considered deprecated in JavaScript and its use disables
a whole range of optimizations that we would like to apply in the future.

Therefore this patch will issue a warning if the with statement is detected.

This change is also documented, along with the plan on enabling strict mode
in the future.

Change-Id: Ie60f0536e0bdd6ecc537d8e34efbd8868bcad743
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/doc/src/javascript/hostenvironment.qdoc
src/qml/qml/parser/qqmljs.g
src/qml/qml/parser/qqmljsparser.cpp
src/qml/qml/qqmlscript.cpp