diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-25 00:16:39 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-25 17:51:30 +0200 |
commit | 4566472ed624bdb47ce611b15c07ce4ab10883f8 (patch) | |
tree | 7bcad3144e865bb62b4161359f5af31338d5c95f /Userland/Libraries/LibJS/Runtime/BoundFunction.h | |
parent | a08292d76c4a616ff00c66299dd24d4be51fd593 (diff) | |
download | serenity-4566472ed624bdb47ce611b15c07ce4ab10883f8.zip |
LibJS: Rename BoundFunction::m_target_function to match spec name
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BoundFunction.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/BoundFunction.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BoundFunction.h b/Userland/Libraries/LibJS/Runtime/BoundFunction.h index 7403b392a3..f183dd7b8b 100644 --- a/Userland/Libraries/LibJS/Runtime/BoundFunction.h +++ b/Userland/Libraries/LibJS/Runtime/BoundFunction.h @@ -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& bound_target_function() const { return *m_bound_target_function; } - FunctionObject& target_function() const - { - return *m_target_function; - } +private: + virtual void visit_edges(Visitor&) override; - virtual bool is_strict_mode() const override { return m_target_function->is_strict_mode(); } + FunctionObject* m_bound_target_function { nullptr }; // [[BoundTargetFunction]] -private: - FunctionObject* m_target_function { nullptr }; Object* m_constructor_prototype { nullptr }; FlyString m_name; i32 m_length { 0 }; |