mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibJS: Implement Proxy [[Call]] and [[Construct]] traps
In order to do this, Proxy now extends Function rather than Object, and whether or not it returns true for is_function() depends on it's m_target.
This commit is contained in:
parent
ed683663cd
commit
98323e19e5
5 changed files with 98 additions and 6 deletions
|
@ -69,7 +69,7 @@ protected:
|
|||
Function(Object& prototype, Value bound_this, Vector<Value> bound_arguments);
|
||||
|
||||
private:
|
||||
virtual bool is_function() const final { return true; }
|
||||
virtual bool is_function() const override { return true; }
|
||||
Value m_bound_this;
|
||||
Vector<Value> m_bound_arguments;
|
||||
Value m_home_object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue