1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibJS: Implement the SetFunctionLength AO

This commit is contained in:
Linus Groh 2022-01-24 19:10:46 +00:00
parent 5b04c49762
commit 886d6c62f9
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; }