You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin doesn't have much in the way of control over this since it relies on Babylon. Feel free to file this on https://github.com/babel/babylon though, it's probably worth raising again. This was originally on purpose which can be seen in https://phabricator.babeljs.io/T2014 and then the spec was updated but it essentially got rolled into https://phabricator.babeljs.io/T2645. The overall updated spec has taken much longer than we originally expected, so maybe it's worth revisiting tweaking the parser for now to allow it.
Just stumbled across this one
will result in the following error
Is this by design or can this be fixed?
Because, when doing this instead
the decorator will be applied just fine.
And, by looking at the spec, in 14.3 it states that the GeneratorDefinition from 14.4 is a valid MethodDefinition.
And according to https://github.com/wycats/javascript-decorators#grammar PropertyDefinition refers to MethodDefinition.
The text was updated successfully, but these errors were encountered: