summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/FunctionObject.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-25 00:01:09 +0200
committerLinus Groh <mail@linusgroh.de>2021-09-25 17:51:30 +0200
commit76eb8fe7178c2f03115fa1c4b5d0cb43a0a99064 (patch)
tree704286042e668da19aecc0bc31eb1e6527aeb556 /Userland/Libraries/LibJS/Runtime/FunctionObject.h
parent136451c3aff8785af23be7b000176bde4fd90755 (diff)
downloadserenity-76eb8fe7178c2f03115fa1c4b5d0cb43a0a99064.zip
LibJS: Move [[Fields]] to ECMAScriptFunctionObject
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionObject.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FunctionObject.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionObject.h b/Userland/Libraries/LibJS/Runtime/FunctionObject.h
index fbd3d3932e..ca41124d64 100644
--- a/Userland/Libraries/LibJS/Runtime/FunctionObject.h
+++ b/Userland/Libraries/LibJS/Runtime/FunctionObject.h
@@ -42,17 +42,6 @@ public:
// This is for IsSimpleParameterList (static semantics)
bool has_simple_parameter_list() const { return m_has_simple_parameter_list; }
- // [[Fields]]
- struct InstanceField {
- StringOrSymbol name;
- FunctionObject* initializer { nullptr };
-
- void define_field(VM& vm, Object& receiver) const;
- };
-
- Vector<InstanceField> const& fields() const { return m_fields; }
- void add_field(StringOrSymbol property_key, FunctionObject* initializer);
-
protected:
virtual void visit_edges(Visitor&) override;
@@ -66,7 +55,6 @@ private:
Value m_bound_this;
Vector<Value> m_bound_arguments;
bool m_has_simple_parameter_list { false };
- Vector<InstanceField> m_fields;
};
}