mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +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
|
@ -232,7 +232,7 @@ static Result<void, TestError> run_test(StringView source, StringView filepath,
|
|||
return {};
|
||||
}
|
||||
|
||||
auto vm = JS::VM::create();
|
||||
auto vm = MUST(JS::VM::create());
|
||||
vm->enable_default_host_import_module_dynamically_hook();
|
||||
auto ast_interpreter = JS::Interpreter::create<JS::Test262::GlobalObject>(*vm);
|
||||
auto& realm = ast_interpreter->realm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue