mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
LibJS: Propagate errors from VM creation
This commit is contained in:
parent
eb5aae24f4
commit
13dfadba79
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/trflynn89
Commit: 13dfadba79
Pull-request: https://github.com/SerenityOS/serenity/pull/17892
Reviewed-by: https://github.com/linusg
13 changed files with 15 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue