mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Propagate errors from VM creation
This commit is contained in:
committed by
Linus Groh
parent
eb5aae24f4
commit
13dfadba79
@@ -621,7 +621,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
|
||||
s_history_path = TRY(String::formatted("{}/.js-history", Core::StandardPaths::home_directory()));
|
||||
|
||||
g_vm = JS::VM::create();
|
||||
g_vm = TRY(JS::VM::create());
|
||||
g_vm->enable_default_host_import_module_dynamically_hook();
|
||||
|
||||
// NOTE: These will print out both warnings when using something like Promise.reject().catch(...) -
|
||||
|
||||
Reference in New Issue
Block a user