mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
AK+Everywhere: Add Vector::contains(predicate) and use it
No functional changes.
This commit is contained in:
committed by
Sam Atkins
parent
d84a0d411c
commit
ae20ecf857
Notes:
github-actions[bot]
2026-01-08 15:28:34 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/ae20ecf8578 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7345 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -164,7 +164,7 @@ SharedFunctionInstanceData::SharedFunctionInstanceData(
|
||||
|
||||
HashMap<Utf16FlyString, ParameterIsLocal> parameter_bindings;
|
||||
|
||||
auto arguments_object_needs_binding = m_arguments_object_needed && !m_local_variables_names.first_matching([](auto const& local) { return local.declaration_kind == LocalVariable::DeclarationKind::ArgumentsObject; }).has_value();
|
||||
auto arguments_object_needs_binding = m_arguments_object_needed && !m_local_variables_names.contains([](auto const& local) { return local.declaration_kind == LocalVariable::DeclarationKind::ArgumentsObject; });
|
||||
|
||||
// 22. If argumentsObjectNeeded is true, then
|
||||
if (m_arguments_object_needed) {
|
||||
|
||||
Reference in New Issue
Block a user