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:
parent
ab5709edfd
commit
3f4f0f0c02
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue