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:
parent
c760713650
commit
b3a3c53007
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue