1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

LibJS: Don't differentiate between empty and null DFS in CatchClause

This commit is contained in:
Dan Klishch 2024-01-24 14:48:14 -05:00 committed by Andrew Kaster
parent fb2c929310
commit d558468d03

View file

@ -1374,7 +1374,7 @@ void CatchClause::dump(int indent) const
print_indent(indent); print_indent(indent);
m_parameter.visit( m_parameter.visit(
[&](DeprecatedFlyString const& parameter) { [&](DeprecatedFlyString const& parameter) {
if (parameter.is_null()) if (parameter.is_empty())
outln("CatchClause"); outln("CatchClause");
else else
outln("CatchClause ({})", parameter); outln("CatchClause ({})", parameter);