mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
084cceab5c
commit
8263a9863f
Notes:
github-actions[bot]
2025-04-25 14:45:48 +00:00
Author: https://github.com/shannonbooth
Commit: 8263a9863f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4453
12 changed files with 13 additions and 15 deletions
|
@ -558,7 +558,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
AK::set_debug_enabled(!disable_debug_printing);
|
||||
s_history_path = TRY(String::formatted("{}/.js-history", Core::StandardPaths::home_directory()));
|
||||
|
||||
g_vm_storage.get() = TRY(JS::VM::create());
|
||||
g_vm_storage.get() = JS::VM::create();
|
||||
g_vm = g_vm_storage->ptr();
|
||||
g_vm->set_dynamic_imports_allowed(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue