Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
b50d01891b (qt/qtdeclarative/dev) b50d01891b (qt/tqtc-qtdeclarative/dev) 6fa4d45b0d (qt/qtdeclarative/6.4)
Description
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.