mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibJS: Remove variables from FunctionNode
They weren't consumed anywhere outside the AST and went against the usual concept of having declaration in ScopeNode.
This commit is contained in:
@@ -1310,13 +1310,6 @@ void FunctionNode::dump(int indent, String const& class_name) const
|
||||
parameter.default_value->dump(indent + 3);
|
||||
}
|
||||
}
|
||||
if (!m_variables.is_empty()) {
|
||||
print_indent(indent + 1);
|
||||
outln("(Variables)");
|
||||
|
||||
for (auto& variable : m_variables)
|
||||
variable.dump(indent + 2);
|
||||
}
|
||||
print_indent(indent + 1);
|
||||
outln("(Body)");
|
||||
body().dump(indent + 2);
|
||||
|
||||
Reference in New Issue
Block a user