Przeglądaj źródła

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

Dan Klishch 1 rok temu
rodzic
commit
d558468d03
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Userland/Libraries/LibJS/AST.cpp

+ 1 - 1
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);