diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-15 22:16:17 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-15 23:59:21 +0100 |
commit | de9fa6622a52ff71ad59c8de01af7b1e9274a10d (patch) | |
tree | d1b9b0d94806d4e6af9b2382e54fdaa3cd1ed898 /Userland/Libraries/LibWeb | |
parent | 8c7fe8d6c8cca71334c3b46ed201809843d9cf07 (diff) | |
download | serenity-de9fa6622a52ff71ad59c8de01af7b1e9274a10d.zip |
LibJS: Add the FinalizationRegistry built-in object
As well as the needed functionality in VM to enqueue and run cleanup
jobs for the FinalizationRegistry instances.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 98cc56969c..f1c3d239e1 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -630,6 +630,7 @@ JS::Interpreter& Document::interpreter() vm.on_call_stack_emptied = [this] { auto& vm = m_interpreter->vm(); vm.run_queued_promise_jobs(); + vm.run_queued_finalization_registry_cleanup_jobs(); // Note: This is not an exception check for the promise jobs, they will just leave any // exception that already exists intact and never throw a new one (without cleaning it // up, that is). Taking care of any previous unhandled exception just happens to be the |