1
Fork 0
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:
Jack Karamanian 2020-04-19 15:03:02 -05:00 committed by Andreas Kling
parent b3800829da
commit 1fa0c7304d
10 changed files with 317 additions and 6 deletions

View file

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