mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Remove unused capture in queue_a_microtask()
This commit is contained in:
parent
a8e1599ae1
commit
ba065faa54
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba065faa54
|
@ -220,7 +220,7 @@ JS::VM& main_thread_vm()
|
|||
auto* script = active_script();
|
||||
|
||||
// NOTE: This keeps job_settings alive by keeping realm alive, which is holding onto job_settings.
|
||||
HTML::queue_a_microtask(script ? script->settings_object().responsible_document().ptr() : nullptr, [job_settings, job = move(job), realm, script_or_module = move(script_or_module)]() mutable {
|
||||
HTML::queue_a_microtask(script ? script->settings_object().responsible_document().ptr() : nullptr, [job_settings, job = move(job), script_or_module = move(script_or_module)]() mutable {
|
||||
// The dummy execution context has to be kept up here to keep it alive for the duration of the function.
|
||||
Optional<JS::ExecutionContext> dummy_execution_context;
|
||||
|
||||
|
|
Loading…
Reference in a new issue