mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +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
|
@ -772,7 +772,7 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body()
|
|||
return throw_completion(exception->value());
|
||||
|
||||
VERIFY(result_and_frame.frame != nullptr);
|
||||
auto result = result_and_frame.value;
|
||||
auto result = TRY(result_and_frame.value);
|
||||
|
||||
// NOTE: Running the bytecode should eventually return a completion.
|
||||
// Until it does, we assume "return" and include the undefined fallback from the call site.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue