mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibJS: Remove no-op code in ScriptFunction constructor
This commit is contained in:
parent
6833004a45
commit
60d1ef6af4
Notes:
sideshowbarker
2024-07-19 07:32:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/60d1ef6af49
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
Reference in a new issue