Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
5.15.11, 6.2.6, 6.4.0
Description
We can generally write to let/const variables before their declaration. This should throw an exception. For example:
a = 5; let a;
function c() { b = 10; } c() let b
Attachments
Issue Links
- resulted from
-
QTBUG-104192 Implement generate_InitializeBlockDeadTemporalZone
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-108362 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
442857,4 | QML: Fix the most blatant TDZ violations | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
443039,3 | QML: Require TDZ checks variables declared in case blocks | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |