mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 18:47:15 +02:00
Our existing implementation was checking if the generator step result was `undefined` to indicate that the generator is complete. This is not sufficient for an upcoming implementation of Iterator.concat, where `undefined` is used as an incomplete iteration result. Instead, let's have the Iterator prototype return an IterationResult to explicitly indicate its completeness. As a result, the prototype also looks more like the spec now.
2.1 KiB
2.1 KiB