mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 20:12:13 +00:00
LibJS: Remove redundant abrupt completion check
A throw completion is always an abrupt completion, no need to check :^)
This commit is contained in:
parent
85f0fc2b83
commit
032e6a2d28
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body()
|
||||||
auto declaration_result = function_declaration_instantiation(ast_interpreter);
|
auto declaration_result = function_declaration_instantiation(ast_interpreter);
|
||||||
|
|
||||||
// 3. If declResult is not an abrupt completion, then
|
// 3. If declResult is not an abrupt completion, then
|
||||||
if (!declaration_result.is_throw_completion() || !declaration_result.throw_completion().is_abrupt()) {
|
if (!declaration_result.is_throw_completion()) {
|
||||||
// a. Perform ! AsyncFunctionStart(promiseCapability, FunctionBody).
|
// a. Perform ! AsyncFunctionStart(promiseCapability, FunctionBody).
|
||||||
async_function_start(promise_capability);
|
async_function_start(promise_capability);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue