Qt Declarative (Quick 2)
Go to file
Robin Burchell b63393c7aa Codegen: Disallow const declaration without an initializer expression
This seems to match up with the spec behavior. 13.3.1.1 (Static Semantics:
Early Errors) says:

    It is a Syntax Error if Initializer is not present and IsConstantDeclaration
    of the LexicalDeclaration containing this production is true.

In addition, we also allow "const" to be used in JS mode too. We don't
yet fully support the semantics, but as it's there, why not let it work.

[ChangeLog][QtQml] "const" variable declarations are now available in JS
as well as QML mode.

[ChangeLog][QtQml] "const" variable declarations now require an
initializer, bringing them closer to the required spec behavior.

Task-number: QTBUG-58493
Change-Id: Ife5d5979b3e7a5d7340bf04f43605f847ee25ee2
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-02-02 15:49:13 +00:00
config.tests/d3d12 D3D12: Support translucent windows via DirectComposition 2016-07-14 13:05:13 +00:00
dist Add changes file for 5.8.0 2016-12-09 12:14:10 +00:00
examples Merge remote-tracking branch 'origin/5.8' into dev 2017-01-30 12:56:18 +01:00
features Add the skeleton for a D3D12 backend 2016-02-19 14:51:37 +00:00
src Codegen: Disallow const declaration without an initializer expression 2017-02-02 15:49:13 +00:00
tests Codegen: Disallow const declaration without an initializer expression 2017-02-02 15:49:13 +00:00
tools Allow selecting armv7 as target architecture in qmlcachegen 2017-02-01 11:52:40 +00:00
.gitattributes Update the git-archive export options 2012-09-10 14:24:05 +02:00
.gitignore Merge remote-tracking branch 'origin/5.7' into dev 2016-08-19 21:22:10 +02:00
.gitmodules Update Ecmascript testsuite submodule 2015-03-17 11:38:42 +00:00
.qmake.conf Bump version 2017-02-02 15:30:41 +01:00
.tag Update the git-archive export options 2012-09-10 14:24:05 +02:00
LGPL_EXCEPTION.txt Update copyright headers 2015-02-12 10:28:11 +00:00
LICENSE.FDL Add license files mandated by (L)GPL. 2013-02-15 00:03:10 +01:00
LICENSE.GPL2 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.GPL3 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.GPL3-EXCEPT Updated license headers 2016-01-20 11:46:25 +00:00
LICENSE.GPLv3 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-16 13:42:07 +00:00
LICENSE.LGPL3 Updated license headers 2016-01-19 14:53:18 +00:00
LICENSE.LGPLv3 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-16 13:42:07 +00:00
LICENSE.LGPLv21 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-16 13:42:07 +00:00
configure.json Convert qtdeclarative over to use the new configure system 2016-10-10 14:11:39 +00:00
qtdeclarative.pro Convert qtdeclarative over to use the new configure system 2016-10-10 14:11:39 +00:00
sync.profile Merge remote-tracking branch 'origin/5.6' into 5.7 2016-11-15 10:57:49 +01:00