mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibJS: Implement rest parameters
This commit is contained in:
parent
9df71afdb3
commit
454c1e6bbe
5 changed files with 98 additions and 10 deletions
|
@ -158,6 +158,7 @@ public:
|
|||
struct Parameter {
|
||||
FlyString name;
|
||||
RefPtr<Expression> default_value;
|
||||
bool is_rest { false };
|
||||
};
|
||||
|
||||
const FlyString& name() const { return m_name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue