summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-27 22:39:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-27 22:40:49 +0200
commitcd53d046b25f7a38b2bf0cf9e38db3762ca79819 (patch)
tree6098c7e27e18556e26d0e1adbb9525aa73c1b09e /Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp
parent1bd52ce7896889f24c5972408c6b29b3d5ebde1d (diff)
downloadserenity-cd53d046b25f7a38b2bf0cf9e38db3762ca79819.zip
LibJS: Fix typo "sweeped" => "swept" everywhere
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp b/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp
index d4dad7c5b2..9e012043d6 100644
--- a/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp
+++ b/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp
@@ -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);
}