mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +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.
165 KiB
165 KiB