mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibJS+LibTest+js: Convert BC::Interpreter::run to ThrowCompletionOr<>
Note that this is just a shallow API change.
This commit is contained in:
parent
3b0bf05fa5
commit
070d2eaa51
Notes:
sideshowbarker
2024-07-18 01:14:28 +09:00
Author: https://github.com/alimpfard
Commit: 070d2eaa51
Pull-request: https://github.com/SerenityOS/serenity/pull/10864
Reviewed-by: https://github.com/linusg
7 changed files with 19 additions and 11 deletions
|
@ -837,7 +837,7 @@ static bool parse_and_run(JS::Interpreter& interpreter, StringView source, Strin
|
|||
|
||||
if (s_run_bytecode) {
|
||||
JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object(), interpreter.realm());
|
||||
bytecode_interpreter.run(executable);
|
||||
TRY_OR_DISCARD(bytecode_interpreter.run(executable));
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue