mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Instead of creating a new iterator result Object for every step of for..in iteration, we can create a single object up front and reuse it for every step. This avoids generating a bunch of garbage that isn't observable by author code anyway. We can also reuse the existing premade shape for these objects.