impatient-js icon indicating copy to clipboard operation
impatient-js copied to clipboard

Chapter: Synchronous generators (advanced)

Open rauschma opened this issue 6 years ago • 4 comments

rauschma avatar Jan 27 '19 14:01 rauschma

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;
  }
}

sergsavoniuk avatar Feb 28 '19 12:02 sergsavoniuk

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

rauschma avatar Mar 23 '19 16:03 rauschma

Extra s in 35.4.2 Internal iteration (push)

Each traversed value is passsed

cascandaliato avatar Mar 05 '20 12:03 cascandaliato

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

rauschma avatar Jan 02 '22 12:01 rauschma