mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
LibJS: FunctionEnvironment.[[FunctionObject]] is the *invoked* function
We were setting the wrong [[FunctionObject]] on the environment when going through ProxyObject and BoundFunction.
This commit is contained in:
parent
08d2ea3fac
commit
b650d11dd3
10 changed files with 14 additions and 14 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
virtual Value call() = 0;
|
||||
virtual Value construct(Function& new_target) = 0;
|
||||
virtual const FlyString& name() const = 0;
|
||||
virtual FunctionEnvironmentRecord* create_environment_record() = 0;
|
||||
virtual FunctionEnvironmentRecord* create_environment_record(Function&) = 0;
|
||||
|
||||
BoundFunction* bind(Value bound_this_value, Vector<Value> arguments);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue