mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS: Update two comments saying "completion value"
This is an editorial change in the ECMA-262 spec. See: https://github.com/tc39/ecma262/commit/7913cea
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 11:20:11 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/03e13715ac Pull-request: https://github.com/SerenityOS/serenity/pull/13902 Reviewed-by: https://github.com/IdanHo ✅
@@ -768,7 +768,7 @@ void async_block_start(VM& vm, NonnullRefPtr<Statement> const& async_body, Promi
|
||||
// 6. Assert: When we return here, asyncContext has already been removed from the execution context stack and runningContext is the currently running execution context.
|
||||
VERIFY(&vm.running_execution_context() == &running_context);
|
||||
|
||||
// 7. Assert: result is a normal completion with a value of unused. The possible sources of completion values are Await or, if the async function doesn't await anything, step 3.g above.
|
||||
// 7. Assert: result is a normal completion with a value of unused. The possible sources of this value are Await or, if the async function doesn't await anything, step 3.g above.
|
||||
VERIFY(result.has_value() && result.value().is_undefined());
|
||||
|
||||
// 8. Return unused.
|
||||
|
||||
Reference in New Issue
Block a user