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
Notes: sideshowbarker 2024-07-17 06:40:21 +09:00

View file

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