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
Not sure by isGenerator if you mean a generator object or a generator function, both should be possible.
For testing for a generator object the spec defines that all generator objects have a [[GeneratorState]] property, which after initialization must have a value from: "suspendedStart", "suspendedYield", "executing", "completed", so that should be easy to check.
For testing for a generator function its as trivial as checking "[[FunctionKind]]" is equal to "generator".
Not sure if it makes sense to include it in this proposal but it would be nice to have.
The text was updated successfully, but these errors were encountered: