LibJS: Implement rest parameters

This commit is contained in:
Linus Groh 2020-05-04 16:05:13 +01:00 committed by Andreas Kling
commit 454c1e6bbe
Notes: sideshowbarker 2024-07-19 06:59:12 +09:00
5 changed files with 98 additions and 10 deletions

View file

@ -158,6 +158,7 @@ public:
struct Parameter {
FlyString name;
RefPtr<Expression> default_value;
bool is_rest { false };
};
const FlyString& name() const { return m_name; }