impatient-js
impatient-js copied to clipboard
Chapter: Synchronous generators (advanced)
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;
}
}
Thanks @sergsavoniuk! This will be fixed in the next release.
Extra s in 35.4.2 Internal iteration (push)
Each traversed value is passsed
@cascandaliato Thanks for reporting this. Will be fixed in next release.