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:
parent
6833004a45
commit
60d1ef6af4
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue