The error message could say what you suggest. But why would you expect the error type to not be SyntaxError?
foo.#bar has never been valid JavaScript. With class fields, it becomes valid, but only within class bodies.
Replying to @the_ozmic
The # link in the write-up explains it nicely:https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE_SYNTAX_FAQ.md#why-arent-declarations-private-x …
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.