mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Propagate errors from VM creation
This commit is contained in:
committed by
Linus Groh
parent
eb5aae24f4
commit
13dfadba79
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/13dfadba79 Pull-request: https://github.com/SerenityOS/serenity/pull/17892 Reviewed-by: https://github.com/linusg
@@ -189,7 +189,7 @@ int main(int argc, char** argv)
|
||||
g_main_hook();
|
||||
|
||||
if (!g_vm) {
|
||||
g_vm = JS::VM::create();
|
||||
g_vm = MUST(JS::VM::create());
|
||||
g_vm->enable_default_host_import_module_dynamically_hook();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user