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
{{ message }}
This repository was archived by the owner on May 19, 2018. It is now read-only.
With the latest [email protected] I am unable to decorate generator functions, i.e.
class Foo
{
@deco
* gen() {}
}
will result in an unexpected error.
Here, it will fail if isGenerator is true.
I am currently working on a patch for this and will report back.
RATIONALE
According to 14.3/14.4 of the ECMAScript specification, a GeneratorMethod (14.4) is a valid MethodDefinition (14.3). And in the decorator specification also states that it can be used with a MethodDefinition and makes no limitations whatsoever.
With the latest [email protected] I am unable to decorate generator functions, i.e.
will result in an unexpected error.
Here, it will fail if isGenerator is true.
I am currently working on a patch for this and will report back.
RATIONALE
According to 14.3/14.4 of the ECMAScript specification, a GeneratorMethod (14.4) is a valid MethodDefinition (14.3). And in the decorator specification also states that it can be used with a MethodDefinition and makes no limitations whatsoever.