mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI
This commit is contained in:
parent
8333055c3d
commit
f48751a739
47 changed files with 78 additions and 107 deletions
|
@ -77,9 +77,9 @@ void MarkupGenerator::value_to_html(Value value, StringBuilder& output_html, Has
|
|||
auto& object = value.as_object();
|
||||
if (object.is_function())
|
||||
return function_to_html(object, output_html, seen_objects);
|
||||
if (object.is_date())
|
||||
if (is<Date>(object))
|
||||
return date_to_html(object, output_html, seen_objects);
|
||||
if (object.is_error())
|
||||
if (is<Error>(object))
|
||||
return error_to_html(object, output_html, seen_objects);
|
||||
return object_to_html(object, output_html, seen_objects);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue