mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibJS: Remove no-op code in ScriptFunction constructor
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 07:32:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/60d1ef6af49
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user