LibJS: Remove no-op code in ScriptFunction constructor

This commit is contained in:
Andreas Kling 2020-04-16 16:58:44 +02:00
parent 6833004a45
commit 60d1ef6af4
Notes: sideshowbarker 2024-07-19 07:32:56 +09:00

View file

@ -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);
}