1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibJS: Include the class name of objects in MarkupGenerator output

Add a little label before the "{ }" so you can see what kind of object
it is. This makes Browser's JS console significantly nicer to use. :^)
This commit is contained in:
Andreas Kling 2021-04-20 11:41:59 +02:00
parent df84cd77b8
commit 4d35ffdf3c
2 changed files with 5 additions and 1 deletions

View file

@ -48,7 +48,8 @@ private:
Operator,
Keyword,
ControlKeyword,
Identifier
Identifier,
ObjectType,
};
static void value_to_html(Value, StringBuilder& output_html, HashTable<Object*> seen_objects = {});