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
Implement the pinned JSC__JSValue__forEach private-ABI boundary as a real iterator-protocol traversal with a native callback per yielded value.
Acceptance
Perform exact GetMethod(value, @@iterator), iterator creation, cached next lookup, IteratorStep, and IteratorValue ordering for arrays, strings, Map/Set, generators, and custom iterables.
Invoke the native callback once per yielded value with the selected global, VM identity, opaque callback context, and stable EncodedJSValue identity.
Preserve getter/proxy/custom-iterator observability and stop on abrupt completion; close an open iterator when the callback publishes an exception, retaining the original first-wins exception if return() also throws.
Accept same-VM sibling values, reject foreign-VM handles, and leave an already-pending exception untouched without advancing the iterable.
Add focused normal/leak coverage and the pinned consumer compile-link-runtime fixture.
Update generated Home/Bun inventories, README/docs counts, and all parent issue evidence from committed artifacts.
Completed on main in two small commits: implementation and focused/consumer coverage at 815bbb87, then generated inventories and README/docs evidence at 839b4743.
Evidence:
exact @@iterator lookup/call, cached next, IteratorStep, and IteratorValue order
Activity
feat(abi): traverse iterables through native callbacks (#237)
docs(abi): publish iterable callback evidence (#237)
chrisbbreuer commentedon Jul 17, 2026
Completed on
mainin two small commits: implementation and focused/consumer coverage at815bbb87, then generated inventories and README/docs evidence at839b4743.Evidence:
@@iteratorlookup/call, cachednext, IteratorStep, and IteratorValue orderreturn()cannot replace the first exceptionThe committed 1,540-sample JSC benchmark artifact remains
36a617b3; this ABI-only slice did not regenerate performance scores.