mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from one vector to the end of another vector.
This commit is contained in:
parent
7e1bffdeb8
commit
dc65f54c06
37 changed files with 103 additions and 104 deletions
|
@ -397,7 +397,7 @@ Value VM::construct(Function& function, Function& new_target, Optional<MarkedVal
|
|||
call_frame.function_name = function.name();
|
||||
call_frame.arguments = function.bound_arguments();
|
||||
if (arguments.has_value())
|
||||
call_frame.arguments.append(arguments.value().values());
|
||||
call_frame.arguments.extend(arguments.value().values());
|
||||
auto* environment = function.create_environment();
|
||||
call_frame.scope = environment;
|
||||
if (environment)
|
||||
|
@ -509,7 +509,7 @@ Value VM::call_internal(Function& function, Value this_value, Optional<MarkedVal
|
|||
call_frame.this_value = function.bound_this().value_or(this_value);
|
||||
call_frame.arguments = function.bound_arguments();
|
||||
if (arguments.has_value())
|
||||
call_frame.arguments.append(arguments.value().values());
|
||||
call_frame.arguments.extend(arguments.value().values());
|
||||
auto* environment = function.create_environment();
|
||||
call_frame.scope = environment;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue