mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibJS: Implement Function.prototype.bind()
This commit is contained in:
parent
b3800829da
commit
1fa0c7304d
10 changed files with 317 additions and 6 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
|
||||
virtual void visit_children(Visitor&) override;
|
||||
|
||||
BoundFunction* bind(Value bound_this_value, Vector<Value> arguments);
|
||||
|
||||
Optional<Value> bound_this() const
|
||||
{
|
||||
return m_bound_this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue