Utilities: Keep wasm event loop alive

Create the wasm utility event loop with
Core::EventLoop::initialize_for_current_thread() so it follows the same
process-lifetime model as other program main loops.
This commit is contained in:
Andreas Kling 2026-06-04 20:25:55 +02:00 committed by Andreas Kling
parent ab5709edfd
commit 3f4f0f0c02

View file

@ -615,7 +615,7 @@ ErrorOr<int> ladybird_main(Main::Arguments arguments)
}
#endif
Core::EventLoop main_loop;
Core::EventLoop::initialize_for_current_thread();
// First, resolve the linked modules
Vector<NonnullRefPtr<Wasm::ModuleInstance>> linked_instances;
Vector<NonnullRefPtr<Wasm::Module>> linked_modules;