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
Since (async) iterator wrapper object unconditionally have a "throw", they need to handle the case of the wrapped iterator lacking a "throw" method. yield * goes to some length to fallback to closing the iterator before throwing a type error. The existing sync to async iterator wrapper is surprisingly not following the same behavior, but consensus was reached at the last plenary on my PR to fix it: tc39/ecma262#2600
The text was updated successfully, but these errors were encountered:
Since (async) iterator wrapper object unconditionally have a "throw", they need to handle the case of the wrapped iterator lacking a "throw" method.
yield *
goes to some length to fallback to closing the iterator before throwing a type error. The existing sync to async iterator wrapper is surprisingly not following the same behavior, but consensus was reached at the last plenary on my PR to fix it: tc39/ecma262#2600The text was updated successfully, but these errors were encountered: