diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-25 00:38:23 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-25 17:51:30 +0200 |
commit | 9043041dd34e361d761313dcaba81f220e31b7de (patch) | |
tree | 77d1100029909d3d08c801fd7cf36f6c3da1d1d3 /Userland/Libraries/LibJS/Runtime/FunctionObject.h | |
parent | 4566472ed624bdb47ce611b15c07ce4ab10883f8 (diff) | |
download | serenity-9043041dd34e361d761313dcaba81f220e31b7de.zip |
LibJS: Move [[BoundThis]] and [[BoundArguments]] to BoundFunction
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/FunctionObject.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionObject.h b/Userland/Libraries/LibJS/Runtime/FunctionObject.h index ec8bedf665..c6ab280faa 100644 --- a/Userland/Libraries/LibJS/Runtime/FunctionObject.h +++ b/Userland/Libraries/LibJS/Runtime/FunctionObject.h @@ -25,10 +25,6 @@ public: BoundFunction* bind(Value bound_this_value, Vector<Value> arguments); - Value bound_this() const { return m_bound_this; } - - const Vector<Value>& bound_arguments() const { return m_bound_arguments; } - virtual bool is_strict_mode() const { return false; } // [[Environment]] @@ -40,15 +36,10 @@ public: virtual Realm* realm() const { return nullptr; } protected: - virtual void visit_edges(Visitor&) override; - explicit FunctionObject(Object& prototype); - FunctionObject(Value bound_this, Vector<Value> bound_arguments, Object& prototype); private: virtual bool is_function() const override { return true; } - Value m_bound_this; - Vector<Value> m_bound_arguments; }; } |