1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibJS: Convert FinalizationRegistry::cleanup to ThrowCompletionOr

This commit is contained in:
davidot 2022-02-07 14:42:24 +01:00 committed by Linus Groh
parent dcc284705b
commit f324d91106
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;