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
Async generator yield* skips custom Symbol.asyncIterator delegation in both engines #3616
A custom iterable with Symbol.asyncIterator can be consumed by for await, but SharpTS async generators fail to delegate to it with yield*. Run with --no-tsconfig --noLib and, for saved output, --compile --verify.
The interpreter catches an error saying SharpTSObject is not iterable and prints that message followed by false.
Saved compiled output passes IL verification and prints undefined true.
Changing the iterator step to Promise.resolve(1) should instead enter the catch with a TypeError. Node does so, but the SharpTS outputs are unchanged. This is the delegation path, found while testing the for-await case in #3607.
Activity