summaryrefslogtreecommitdiff
path: root/Ports/tr
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2023-01-08 11:09:24 -0700
committerLinus Groh <mail@linusgroh.de>2023-02-21 10:57:44 +0100
commit2bec236ea692c5137fe72487b9eb0f55d29be9cc (patch)
treeb0df2904c8803364b95cda7ae94fe28b85429f4c /Ports/tr
parentf40094d0144a37ac20eb13abaf61e11735451053 (diff)
downloadserenity-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