-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
b50d01891b (qt/qtdeclarative/dev) b50d01891b (qt/tqtc-qtdeclarative/dev) 6fa4d45b0d (qt/qtdeclarative/6.4)
class Tester {
constructor() {
new (class {})();
}
static get test() {}
}
This block of code will throw a syntax error, even though it is valid ES6.
Expected token `('
static get test() {}
It also does not error when I write directly in the QML view, only when I import it from a Javascript file.
| For Gerrit Dashboard: QTBUG-96631 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 424831,6 | Parser: Preserve keywordiness of "static" across nested classes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 429681,3 | Parser: Preserve keywordiness of "static" across nested classes | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |