ladybird/Libraries/LibJS/Bytecode/AsmInterpreter
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
..
asmint.asm LibJS: Yield delegated iterator results directly 2026-05-22 01:56:57 +02:00
AsmInterpreter.cpp LibJS: Yield delegated iterator results directly 2026-05-22 01:56:57 +02:00
AsmInterpreter.h LibJS: Move bytecode interpreter state to VM 2026-04-13 18:29:43 +02:00
gen_asm_offsets.cpp LibJS: Yield delegated iterator results directly 2026-05-22 01:56:57 +02:00