mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS+LibTest+js: Convert BC::Interpreter::run to ThrowCompletionOr<>
Note that this is just a shallow API change.
This commit is contained in:
committed by
Linus Groh
parent
3b0bf05fa5
commit
070d2eaa51
Notes:
sideshowbarker
2024-07-18 01:14:28 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/070d2eaa511 Pull-request: https://github.com/SerenityOS/serenity/pull/10864 Reviewed-by: https://github.com/linusg
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user