mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibJS: Add Value::is_nullish()
This commit is contained in:
parent
ef1b21004f
commit
fa18baf3e8
9 changed files with 22 additions and 21 deletions
|
@ -101,7 +101,7 @@ void MarkupGenerator::value_to_html(Value value, StringBuilder& output_html, Has
|
|||
output_html.append(open_style_type(StyleType::String));
|
||||
else if (value.is_number())
|
||||
output_html.append(open_style_type(StyleType::Number));
|
||||
else if (value.is_boolean() || value.is_null() || value.is_undefined())
|
||||
else if (value.is_boolean() || value.is_nullish())
|
||||
output_html.append(open_style_type(StyleType::KeywordBold));
|
||||
|
||||
if (value.is_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue