mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Implement the JS host hooks for promises, job callbacks and more
This overrides the JS host hooks to follow the spec for queuing promises, making/calling job callbacks, unhandled promise rejection handling and FinalizationRegistry queuing. This also allows us to drop the on_call_stack_emptied hook in Document::interpreter().
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 19:09:10 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/17aeb99e9e Pull-request: https://github.com/SerenityOS/serenity/pull/12308 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/linusg ✅
@@ -284,7 +284,8 @@ void EventLoop::perform_a_microtask_checkpoint()
|
||||
|
||||
// FIXME: 5. Cleanup Indexed Database transactions.
|
||||
|
||||
// FIXME: 6. Perform ClearKeptObjects().
|
||||
// 6. Perform ClearKeptObjects().
|
||||
vm().finish_execution_generation();
|
||||
|
||||
// 7. Set the event loop's performing a microtask checkpoint to false.
|
||||
m_performing_a_microtask_checkpoint = false;
|
||||
|
||||
Reference in New Issue
Block a user