summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/BoundFunction.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-10-08 21:24:51 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-09 14:29:20 +0100
commitfe5c2b7bb998ca4dcc15b10ca809210ae7465d3e (patch)
tree59bbe3988f284e952011b94c357e195e96657f45 /Userland/Libraries/LibJS/Runtime/BoundFunction.cpp
parent53af66d57d0c40e81611fae4ebe665f8f390b168 (diff)
downloadserenity-fe5c2b7bb998ca4dcc15b10ca809210ae7465d3e.zip
LibJS: Decouple new_function_environment() from FunctionObject
Now that only ECMAScriptFunctionObject uses this, we can remove the FunctionObject::new_function_environment() pure virtual method and just implement it as a standalone AO with an ECMAScriptFunctionObject parameter, next to the other NewFooEnvironment AOs.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BoundFunction.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/BoundFunction.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BoundFunction.cpp b/Userland/Libraries/LibJS/Runtime/BoundFunction.cpp
index 0364ccf951..11e27b71ae 100644
--- a/Userland/Libraries/LibJS/Runtime/BoundFunction.cpp
+++ b/Userland/Libraries/LibJS/Runtime/BoundFunction.cpp
@@ -80,11 +80,6 @@ ThrowCompletionOr<Object*> BoundFunction::internal_construct(MarkedValueList arg
return construct(global_object(), target, move(args), final_new_target);
}
-FunctionEnvironment* BoundFunction::new_function_environment(Object* new_target)
-{
- return m_bound_target_function->new_function_environment(new_target);
-}
-
void BoundFunction::visit_edges(Visitor& visitor)
{
Base::visit_edges(visitor);