8000 Chapter: Synchronous generators (advanced) · Issue #43 · rauschma/exploring-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Chapter: Synchronous generators (advanced) #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rauschma opened this issue Jan 27, 2019 · 4 comments
Open

Chapter: Synchronous generators (advanced) #43

rauschma opened this issue Jan 27, 2019 · 4 comments

Comments

@rauschma
Copy link
Owner

No description provided.

@sergsavoniuk
Copy link

35.2.1. Calling generators via yield*

In other words, the previous foo() is roughly equivalent to:

function* foo() {
  for (const x of bar()) {
    yield bar();
  }
}

I guess it should be like this (according to the similar example from here)

function* foo() {
  for (const x of bar()) {
    yield x;
  }
}

@rauschma
Copy link
Owner Author

Thanks @sergsavoniuk! This will be fixed in the next release.

@cascandaliato
Copy link

Extra s in 35.4.2 Internal iteration (push)

Each traversed value is passsed

@rauschma
Copy link
Owner Author
rauschma commented Jan 2, 2022

@cascandaliato Thanks for reporting this. Will be fixed in next release.

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

No branches or pull requests

4 participants
@rauschma @cascandaliato @sergsavoniuk and others
0