Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suggestion: function.this to refer to result instance of generator functions #9

@bergus

Description

@bergus

Very similar to #4, solving the same issue for generator functions. There it might be even more prominent, as every generator function implicitly behaves like a constructor and has a .prototype that can be used to implement custom methods on generator instances. However, the "instance" cannot be initialised in any way from the generator function or accessed while the generator is running, even though next is a method of the instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions