mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibJS: Rename BoundFunction::m_target_function to match spec name
This commit is contained in:
parent
a08292d76c
commit
4566472ed6
6 changed files with 19 additions and 28 deletions
|
@ -19,27 +19,18 @@ public:
|
|||
virtual ~BoundFunction();
|
||||
|
||||
virtual Value call() override;
|
||||
|
||||
virtual Value construct(FunctionObject& new_target) override;
|
||||
|
||||
virtual FunctionEnvironment* create_environment(FunctionObject&) override;
|
||||
virtual const FlyString& name() const override { return m_name; }
|
||||
virtual bool is_strict_mode() const override { return m_bound_target_function->is_strict_mode(); }
|
||||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
virtual const FlyString& name() const override
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
||||
FunctionObject& target_function() const
|
||||
{
|
||||
return *m_target_function;
|
||||
}
|
||||
|
||||
virtual bool is_strict_mode() const override { return m_target_function->is_strict_mode(); }
|
||||
FunctionObject& bound_target_function() const { return *m_bound_target_function; }
|
||||
|
||||
private:
|
||||
FunctionObject* m_target_function { nullptr };
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
FunctionObject* m_bound_target_function { nullptr }; // [[BoundTargetFunction]]
|
||||
|
||||
Object* m_constructor_prototype { nullptr };
|
||||
FlyString m_name;
|
||||
i32 m_length { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue