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:
parent
dcc284705b
commit
f324d91106
3 changed files with 19 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue