mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Implement rest parameters
This commit is contained in:
committed by
Andreas Kling
parent
9df71afdb3
commit
454c1e6bbe
@@ -695,10 +695,11 @@ void FunctionNode::dump(int indent, const char* class_name) const
|
||||
|
||||
for (auto& parameter : m_parameters) {
|
||||
print_indent(indent + 2);
|
||||
if (parameter.is_rest)
|
||||
printf("...");
|
||||
printf("%s\n", parameter.name.characters());
|
||||
if (parameter.default_value) {
|
||||
if (parameter.default_value)
|
||||
parameter.default_value->dump(indent + 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!m_variables.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user