Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 4.7.1, Qt Creator 4.9.0
-
None
Description
Qt Creator currently treats the 'let' statement as 'var' for JavaScript which break the block scoping rule in ES 6 standard.
Codes below will false report a warning:
if (foo) { let test; } if (bar) { let test; } // "test" is declared more than once. (M107)
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-20341 Update QML/JS parser with the one in Qt 5.12
-
- Closed
-