You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in tc39/ecma262#2045, built-in iterators are written by Abstract Closures. In the AC, algorithms can use Let _next_ be ? Yield(_value_) to get the value (equals to const next = yield value in userland).
Now, this proposal says we can use function.sent proposal to resolve that problem in userland, but how to have function.sent equivalent in the specification so the built-in iterators can implement double-ended iterator?
The text was updated successfully, but these errors were encountered:
The function.sent proposal (specced by @allenwb) use LastYieldValue to denote that. I suppose Yield abstract operation could update LastYieldValue, and then u just need ?Yield(_value_) and when need use _next_ use LastYieldValue instead.
Now in tc39/ecma262#2045, built-in iterators are written by Abstract Closures. In the AC, algorithms can use
Let _next_ be ? Yield(_value_)
to get the value (equals toconst next = yield value
in userland).Now, this proposal says we can use
function.sent
proposal to resolve that problem in userland, but how to havefunction.sent
equivalent in the specification so the built-in iterators can implement double-ended iterator?The text was updated successfully, but these errors were encountered: