mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibJS: Add length property to ScriptFunction
This commit is contained in:
parent
cd3e2690eb
commit
4d931b524d
3 changed files with 37 additions and 0 deletions
|
@ -45,6 +45,9 @@ private:
|
|||
virtual bool is_script_function() const final { return true; }
|
||||
virtual const char* class_name() const override { return "ScriptFunction"; }
|
||||
|
||||
static Value length_getter(Interpreter&);
|
||||
static void length_setter(Interpreter&, Value);
|
||||
|
||||
NonnullRefPtr<ScopeNode> m_body;
|
||||
const Vector<FlyString> m_parameters;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue