mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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)");
|
outln("(Parameters)");
|
||||||
|
|
||||||
for (auto& parameter : m_parameters) {
|
for (auto& parameter : m_parameters) {
|
||||||
print_indent(indent + 2);
|
|
||||||
if (parameter.is_rest)
|
|
||||||
out("...");
|
|
||||||
parameter.binding.visit(
|
parameter.binding.visit(
|
||||||
[&](DeprecatedFlyString const& name) {
|
[&](DeprecatedFlyString const& name) {
|
||||||
|
print_indent(indent + 2);
|
||||||
|
if (parameter.is_rest)
|
||||||
|
out("...");
|
||||||
outln("{}", name);
|
outln("{}", name);
|
||||||
},
|
},
|
||||||
[&](BindingPattern const& pattern) {
|
[&](BindingPattern const& pattern) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue