mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-24 19:28:48 +00:00
LibJS: Rename BoundFunction::m_target_function to match spec name
This commit is contained in:
parent
a08292d76c
commit
4566472ed6
Notes:
sideshowbarker
2024-07-18 03:27:57 +09:00
Author: https://github.com/linusg
Commit: 4566472ed6
Pull-request: https://github.com/SerenityOS/serenity/pull/10203
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/davidot
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