mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibCore: Add formatter for Object.
This commit is contained in:
@@ -264,3 +264,12 @@ const LogStream& operator<<(const LogStream& stream, const Object& object)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace AK {
|
||||
|
||||
void Formatter<Core::Object>::format(TypeErasedFormatParams& params, FormatBuilder& builder, const Core::Object& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, String::formatted("{}({})", value.class_name(), &value));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user