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

LibJS: Fix bad indentation when dumping FunctionNode AST nodes

This commit is contained in:
Andreas Kling 2023-06-24 06:23:46 +02:00
parent c760713650
commit b3a3c53007

View file

@ -2489,11 +2489,11 @@ void FunctionNode::dump(int indent, DeprecatedString const& class_name) const
outln("(Parameters)");
for (auto& parameter : m_parameters) {
print_indent(indent + 2);
if (parameter.is_rest)
out("...");
parameter.binding.visit(
[&](DeprecatedFlyString const& name) {
print_indent(indent + 2);
if (parameter.is_rest)
out("...");
outln("{}", name);
},
[&](BindingPattern const& pattern) {