mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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
Notes:
sideshowbarker
2024-07-18 11:30:45 +09:00
Author: https://github.com/awesomekling
Commit: b650d11dd3
10 changed files with 14 additions and 14 deletions
|
@ -478,10 +478,10 @@ const FlyString& ProxyObject::name() const
|
|||
return static_cast<Function&>(m_target).name();
|
||||
}
|
||||
|
||||
FunctionEnvironmentRecord* ProxyObject::create_environment_record()
|
||||
FunctionEnvironmentRecord* ProxyObject::create_environment_record(Function& function_being_invoked)
|
||||
{
|
||||
VERIFY(is_function());
|
||||
return static_cast<Function&>(m_target).create_environment_record();
|
||||
return static_cast<Function&>(m_target).create_environment_record(function_being_invoked);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue