From d558468d033af13e8c5a2b3925a1fdf52bd63f09 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Wed, 24 Jan 2024 14:48:14 -0500 Subject: [PATCH] LibJS: Don't differentiate between empty and null DFS in CatchClause --- Userland/Libraries/LibJS/AST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/AST.cpp b/Userland/Libraries/LibJS/AST.cpp index 571d7b83c1..46ec07153d 100644 --- a/Userland/Libraries/LibJS/AST.cpp +++ b/Userland/Libraries/LibJS/AST.cpp @@ -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);