LibJS: Convert FinalizationRegistry::cleanup to ThrowCompletionOr

This commit is contained in:
davidot 2022-02-07 14:42:24 +01:00 committed by Linus Groh
commit f324d91106
Notes: sideshowbarker 2024-07-17 19:38:10 +09:00
3 changed files with 19 additions and 7 deletions

View file

@ -28,7 +28,7 @@ public:
void add_finalization_record(Cell& target, Value held_value, Object* unregister_token);
bool remove_by_token(Object& unregister_token);
void cleanup(FunctionObject* callback = nullptr);
ThrowCompletionOr<void> cleanup(FunctionObject* callback = nullptr);
virtual void remove_dead_cells(Badge<Heap>) override;