1
Fork 0
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:
Linus Groh 2020-04-04 14:34:27 +01:00 committed by Andreas Kling
parent cd3e2690eb
commit 4d931b524d
3 changed files with 37 additions and 0 deletions

View file

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