Closed suchipi closed 7 years ago
Not related to syntax literal, just a plain extends member expression is sufficient to exercise the bug:
class Foo extends Bar.Baz {} // throws error
~I think enforestLeftHandSideExpression
can just be called directly. That method didn't exist when the enforestClass
was written.~
I was wrong. It shouldn't be called directly.
Works great now, thanks!
If you attempt to create a class declaration (or expression) inside a syntax template literal that extends a superclass which is accessed via a member expression, an error is thrown:
Sweet.js version:
3.0.0