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.
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
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.