From 96bc898e793e2595dd988579b9c4a4ac348dde70 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 26 Aug 2022 11:52:53 -0700 Subject: [PATCH] use ! with a PromiseResolve call that can't fail (#216) Co-authored-by: Michael Ficarra --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 7a37a7a..e880567 100644 --- a/spec.html +++ b/spec.html @@ -345,7 +345,7 @@

%WrapForValidAsyncIteratorPrototype%.return ( )

1. Let _returnMethod_ be Completion(GetMethod(_iterator_, *"return"*)). 1. IfAbruptRejectPromise(_returnMethod_, _promiseCapability_). 1. If _returnMethod_ is *undefined*, then - 1. Return ? PromiseResolve(%Promise%, CreateIterResultObject(*undefined*, *true*)). + 1. Return ! PromiseResolve(%Promise%, CreateIterResultObject(*undefined*, *true*)). 1. Let _result_ be Completion(Call(_returnMethod_, _iterator_)). 1. IfAbruptRejectPromise(_result_, _promiseCapability_). 1. Return ? PromiseResolve(%Promise%, _result_).