ladybird/Libraries/LibJS/Rust
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
..
src LibJS: Yield delegated iterator results directly 2026-05-22 01:56:57 +02:00
build.rs LibJS: Infer computed property function names 2026-05-22 01:56:57 +02:00
Cargo.toml LibJS: Use foldhash in parser and scope-collector hash maps 2026-05-05 13:53:51 +02:00
cbindgen.toml LibJS: Add bytecode validator scaffolding driven from Bytecode.def 2026-05-03 08:43:19 +02:00