mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibJS: Avoid an unnecessary MarkedValueList copy in VM::call_internal()
This commit is contained in:
parent
2852ce4954
commit
2864cb66c0
Notes:
sideshowbarker
2024-07-19 02:03:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2864cb66c06
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,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.append(move(arguments.release_value().values()));
|
||||
call_frame.environment = function.create_environment();
|
||||
|
||||
ASSERT(call_frame.environment->this_binding_status() == LexicalEnvironment::ThisBindingStatus::Uninitialized);
|
||||
|
|
Loading…
Reference in a new issue