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:
Hendi 2021-07-04 03:12:27 +02:00 committed by Linus Groh
commit 72f8d90dc5
Notes: sideshowbarker 2024-07-18 10:20:19 +09:00
3 changed files with 9 additions and 21 deletions

View file

@ -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);