summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/NativeFunction.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/NativeFunction.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp b/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp
index 8932feac5d..043968f876 100644
--- a/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp
+++ b/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp
@@ -195,19 +195,6 @@ Value NativeFunction::construct(FunctionObject&)
VERIFY_NOT_REACHED();
}
-FunctionEnvironment* NativeFunction::new_function_environment(Object* new_target)
-{
- // Simplified version of 9.1.2.4 NewFunctionEnvironment ( F, newTarget )
- Environment* parent_scope = nullptr;
- if (!vm().execution_context_stack().is_empty())
- parent_scope = vm().lexical_environment();
-
- auto* environment = heap().allocate<FunctionEnvironment>(global_object(), parent_scope);
- environment->set_new_target(new_target ? new_target : js_undefined());
-
- return environment;
-}
-
bool NativeFunction::is_strict_mode() const
{
return true;