LibJS+LibWeb: Do not return error from VM::create

This never returns an error to propogate, also allowing ErrorOr
to be removed from creating the main thread VM.
This commit is contained in:
Shannon Booth 2025-04-24 15:46:51 +12:00 committed by Andreas Kling
commit 8263a9863f
Notes: github-actions[bot] 2025-04-25 14:45:48 +00:00
12 changed files with 13 additions and 15 deletions

View file

@ -68,7 +68,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
Web::Platform::FontPlugin::install(*new WebView::FontPlugin(false));
TRY(Web::Bindings::initialize_main_thread_vm(Web::HTML::EventLoop::Type::Worker));
Web::Bindings::initialize_main_thread_vm(Web::HTML::EventLoop::Type::Worker);
TRY(initialize_resource_loader(Web::Bindings::main_thread_vm().heap(), request_server_socket));