mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
LibJS: Propagate errors from VM creation
This commit is contained in:
parent
eb5aae24f4
commit
13dfadba79
13 changed files with 15 additions and 15 deletions
|
@ -88,7 +88,7 @@ void CalculatorProvider::query(DeprecatedString const& query, Function<void(Vect
|
|||
if (!query.starts_with('='))
|
||||
return;
|
||||
|
||||
auto vm = JS::VM::create();
|
||||
auto vm = JS::VM::create().release_value_but_fixme_should_propagate_errors();
|
||||
auto interpreter = JS::Interpreter::create<JS::GlobalObject>(*vm);
|
||||
|
||||
auto source_code = query.substring(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue