mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibJS: Fix typo "sweeped" => "swept" everywhere
This commit is contained in:
parent
1bd52ce789
commit
cd53d046b2
10 changed files with 17 additions and 17 deletions
|
@ -42,19 +42,19 @@ bool FinalizationRegistry::remove_by_token(Object& unregister_token)
|
|||
return removed;
|
||||
}
|
||||
|
||||
void FinalizationRegistry::remove_sweeped_cells(Badge<Heap>, Vector<Cell*>& cells)
|
||||
void FinalizationRegistry::remove_swept_cells(Badge<Heap>, Vector<Cell*>& cells)
|
||||
{
|
||||
auto any_cells_were_sweeped = false;
|
||||
auto any_cells_were_swept = false;
|
||||
for (auto cell : cells) {
|
||||
for (auto& record : m_records) {
|
||||
if (record.target != cell)
|
||||
continue;
|
||||
record.target = nullptr;
|
||||
any_cells_were_sweeped = true;
|
||||
any_cells_were_swept = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (any_cells_were_sweeped)
|
||||
if (any_cells_were_swept)
|
||||
vm().enqueue_finalization_registry_cleanup_job(*this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue