LibJS: Implement the SetFunctionLength AO

This commit is contained in:
Linus Groh 2022-01-24 19:10:46 +00:00
commit 886d6c62f9
Notes: sideshowbarker 2024-07-17 20:17:41 +09:00
2 changed files with 17 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public:
virtual const FlyString& name() const = 0;
void set_function_name(Variant<PropertyKey, PrivateName> const& name_arg, Optional<StringView> const& prefix = {});
void set_function_length(double length);
ThrowCompletionOr<BoundFunction*> bind(Value bound_this_value, Vector<Value> arguments);
virtual bool is_strict_mode() const { return false; }