diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-12 17:32:54 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-12 18:39:23 +0100 |
commit | 6913f06b6f8c58be771caa5af155d775e570aa73 (patch) | |
tree | b8c29b37c23f1407bea03cc096402050c023b7a5 /Userland/Libraries/LibWeb/DOM | |
parent | 8a739f986a58ce88f063f6f1f61dcb38261cbf0e (diff) | |
download | serenity-6913f06b6f8c58be771caa5af155d775e570aa73.zip |
LibJS: Store and maintain an "execution generation" counter
This counter is increased each time a synchronous execution sequence
completes, and will allow us to emulate the abstract operations
AddToKeptObjects & ClearKeptObjects efficiently.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index e7f8ee5787..98cc56969c 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -655,6 +655,8 @@ JS::Interpreter& Document::interpreter() dbgln(" {} at {}:{}:{}", function_name, source_range.filename, source_range.start.line, source_range.start.column); } } + + vm.finish_execution_generation(); }; m_interpreter = JS::Interpreter::create<Bindings::WindowObject>(vm, *m_window); } |