summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-16 16:58:44 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-16 16:58:44 +0200
commit60d1ef6af492530d581d1c532e2c1e1f3868d220 (patch)
tree0e549553c35121ecbee9a5cd46b1201f37775716 /Libraries
parent6833004a45448b7a4a3a463640edf32e93b0e1e4 (diff)
downloadserenity-60d1ef6af492530d581d1c532e2c1e1f3868d220.zip
LibJS: Remove no-op code in ScriptFunction constructor
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibJS/Runtime/ScriptFunction.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Libraries/LibJS/Runtime/ScriptFunction.cpp b/Libraries/LibJS/Runtime/ScriptFunction.cpp
index ec1b6188da..67801181f6 100644
--- a/Libraries/LibJS/Runtime/ScriptFunction.cpp
+++ b/Libraries/LibJS/Runtime/ScriptFunction.cpp
@@ -39,11 +39,6 @@ ScriptFunction::ScriptFunction(const FlyString& name, const Statement& body, Vec
, m_parameters(move(parameters))
, m_parent_environment(parent_environment)
{
- HashMap<FlyString, Variable> variables;
- for (auto& parameter : parameters) {
- variables.set(parameter, {});
- }
-
put("prototype", heap().allocate<Object>());
put_native_property("length", length_getter, length_setter);
}