Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Is the spec-internal built-in generator going to start in this proposal? #104

Closed
Jack-Works opened this issue Jun 10, 2020 · 4 comments
Closed

Comments

@Jack-Works
Copy link
Member

No description provided.

@devsnek
Copy link
Member

devsnek commented Jun 10, 2020

Yield(X) is:

  1. Let generatorKind be ! GetGeneratorKind().
  2. If generatorKind is async, then return ? AsyncGeneratorYield(X).
  3. Otherwise, return ? GeneratorYield(CreateIterResultObject(X, false)).

@Jack-Works
Copy link
Member Author

Eh, I mean the builtin generator presented in the last meeting https://docs.google.com/presentation/d/1QVW_d4lpiFQ5X5czGWq0VMRN9cMLIGpt888TQoyFWpg/edit#slide=id.g85fbc47327_0_62

@Jack-Works Jack-Works changed the title Is the Yield(...) abstract operation going to start in this proposal? Is the spec-internal built-in generator going to start in this proposal? Jun 10, 2020
@devsnek
Copy link
Member

devsnek commented Jun 10, 2020

The plan is built-in generators that use a duplicate version of the existing generator infra in the spec. They behave like generators but they aren't instances of generators.

@Jack-Works
Copy link
Member Author

tc39/ecma262#2045

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants