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
{{ message }}
Repository navigation
[BUG] Chained filter().take(1).toArray() throws TypeError: not a function #1557
A valid Iterator Helpers chain using filter(), take(), and toArray() unexpectedly throws:
TypeError: not a function
at return (native)
at toArray (native)
at <eval> (tools/quickjs_verify/iterator_chain_no_return.js:6:82)
The iterator should produce a one-element array instead.
The failure appears to occur when take(1) reaches its limit and attempts to close the iterator helper returned by filter().
Activity
saghul commentedon Jul 3, 2026
Fix in #1558
Fix Iterator Helper close when the source iterator has no `return`