1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:15:07 +00:00

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

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