diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-16 16:58:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-16 16:58:44 +0200 |
commit | 60d1ef6af492530d581d1c532e2c1e1f3868d220 (patch) | |
tree | 0e549553c35121ecbee9a5cd46b1201f37775716 | |
parent | 6833004a45448b7a4a3a463640edf32e93b0e1e4 (diff) | |
download | serenity-60d1ef6af492530d581d1c532e2c1e1f3868d220.zip |
LibJS: Remove no-op code in ScriptFunction constructor
-rw-r--r-- | Libraries/LibJS/Runtime/ScriptFunction.cpp | 5 |
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); } |