ladybird/Tests/LibJS/Bytecode
Andreas Kling 410f0fdbb0 LibJS: Yield delegated iterator results directly
Sync yield* must suspend with the delegated IteratorResult object itself
on non-terminal steps. We were reading value and yielding that value,
causing Generator.prototype.next() to create a fresh result object.

Add a bytecode op for this path so ordinary yield keeps wrapping its
value, and teach generator resume to return the prebuilt result object.
This also avoids touching value before the delegated iterator is done.

Add regression coverage and update the yield* bytecode baseline.
2026-05-22 01:56:57 +02:00
..
expected LibJS: Yield delegated iterator results directly 2026-05-22 01:56:57 +02:00
input LibJS: Track var coordinates in var environments 2026-05-18 20:35:14 +02:00
output LibJS: Move tests to /Tests/LibJS 2026-01-22 07:46:48 -05:00