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:
parent
5b04c49762
commit
886d6c62f9
2 changed files with 17 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue