Qt Declarative (Quick 2)
Go to file
Robin Burchell 5f807a6276 Codegen: Disallow duplicate declarations of const properties
Spec 13.3.1.1 (Static Semantics: Early Errors) says:

    It is a Syntax Error if the BoundNames of BindingList contains any
    duplicate entries.

Only let/const are supposed to be treated in this way, so we ensure that
one of them has been marked read-only (since we don't support "let"
yet).

There's still no runtime check on assigning to a constant-declared variable.

[ChangeLog][QtQml] "const" variable declarations now throw a SyntaxError if
multiple attempts to declare the same variable name are found. Note that
"const" is still not fully spec-compliant (i.e. reassignment at runtime is
not disallowed).

Task-number: QTBUG-58493
Change-Id: I31fd5f2bf3e79d48734e8ecb714c4e7f47e31d2a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-02-03 15:10:18 +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 duplicate declarations of const properties 2017-02-03 15:10:18 +00:00
tests Codegen: Disallow duplicate declarations of const properties 2017-02-03 15:10:18 +00:00
tools Allow selecting armv7 as target architecture in qmlcachegen 2017-02-01 11:52:40 +00:00
.gitattributes
.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
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