diff options
author | Andrew Kaster <akaster@serenityos.org> | 2023-01-08 11:09:24 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-21 10:57:44 +0100 |
commit | 2bec236ea692c5137fe72487b9eb0f55d29be9cc (patch) | |
tree | b0df2904c8803364b95cda7ae94fe28b85429f4c /Ports/tr | |
parent | f40094d0144a37ac20eb13abaf61e11735451053 (diff) | |
download | serenity-2bec236ea692c5137fe72487b9eb0f55d29be9cc.zip |
LibJS: Use the EnumerateObjectProperties AO to print objects
Instead of just iterating indexed properties and direct properties on
the object's shape, let's walk the prototype chain and grab every
non-symbol property by re-using the AO for for-in statements.
We'll probably want to move this to a custom algorithm just for pretty
printing that doesn't skip some property types, but this already gives
a major improvement when printing LegacyPlatformObjects from LibWeb to
the console.
Diffstat (limited to 'Ports/tr')
0 files changed, 0 insertions, 0 deletions