1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +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:
Andreas Kling 2021-06-25 20:14:17 +02:00
parent 08d2ea3fac
commit b650d11dd3
10 changed files with 14 additions and 14 deletions

View file

@ -22,7 +22,7 @@ public:
virtual Value call() override;
virtual Value construct(Function& new_target) override;
virtual const FlyString& name() const override;
virtual FunctionEnvironmentRecord* create_environment_record() override;
virtual FunctionEnvironmentRecord* create_environment_record(Function&) override;
const Object& target() const { return m_target; }
const Object& handler() const { return m_handler; }