From 689d0d4814449422537b4abf6e978d67408eb3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=C2=A0S=2E=C2=A0Choi?= Date: Thu, 21 Dec 2023 10:52:26 -0700 Subject: [PATCH] fix: Replace IteratorStep with NextMethod (#44) Fixes #33. Prevents an infinite loop caused by IteratorStep(iteratorRecord) not actually flagging termination when IteratorRecord is async. Instead, we will directly call iteratorStep.[[NextMethod]], like how `for await` does. Co-authored-by: Kevin Gibbons --- spec.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index d958d54..a09f523 100644 --- a/spec.html +++ b/spec.html @@ -93,8 +93,11 @@

Array.fromAsync ( _asyncItems_ [ , _mapfn_ [ , _thisArg_ ] ] )