From 530adac8e419acf67d227f8abfb6e7912a62c6cf Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 1 Oct 2024 13:44:36 -0700 Subject: [PATCH 1/2] Editorial: tweak alias names --- spec.emu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec.emu b/spec.emu index 00fd7d6..d2f8fd5 100644 --- a/spec.emu +++ b/spec.emu @@ -12,15 +12,15 @@ copyright: false

Iterator.concat ( ..._items_ )

- 1. Let _iteratorRecords_ be a new empty List. + 1. Let _iterables_ be a new empty List. 1. For each element _item_ of _items_, do 1. If _item_ is not an Object, throw a *TypeError* exception. 1. Let _method_ be ? GetMethod(_item_, %Symbol.iterator%). 1. If _method_ is *undefined*, throw a *TypeError* exception. - 1. Append the Record { [[OpenMethod]]: _method_, [[Iterable]]: _item_ } to _iteratorRecords_. - 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iteratorRecords_ and performs the following steps when called: - 1. For each Record _desc_ of _iteratorRecords_, do - 1. Let _iter_ be ? Call(_desc_.[[OpenMethod]], _desc_.[[Iterable]]). + 1. Append the Record { [[OpenMethod]]: _method_, [[Iterable]]: _item_ } to _iterables_. + 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterables_ and performs the following steps when called: + 1. For each Record _iterables_ of _iterables_, do + 1. Let _iter_ be ? Call(_iterables_.[[OpenMethod]], _iterables_.[[Iterable]]). 1. If _iter_ is not an Object, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIteratorDirect(_iter_). 1. Let _innerAlive_ be *true*. From 4b0909b3315e9aa87d8380ae42ff72594f48d6f5 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Tue, 1 Oct 2024 13:45:43 -0700 Subject: [PATCH 2/2] oops --- spec.emu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.emu b/spec.emu index d2f8fd5..c780cbb 100644 --- a/spec.emu +++ b/spec.emu @@ -19,8 +19,8 @@ copyright: false 1. If _method_ is *undefined*, throw a *TypeError* exception. 1. Append the Record { [[OpenMethod]]: _method_, [[Iterable]]: _item_ } to _iterables_. 1. Let _closure_ be a new Abstract Closure with no parameters that captures _iterables_ and performs the following steps when called: - 1. For each Record _iterables_ of _iterables_, do - 1. Let _iter_ be ? Call(_iterables_.[[OpenMethod]], _iterables_.[[Iterable]]). + 1. For each Record _iterable_ of _iterables_, do + 1. Let _iter_ be ? Call(_iterable_.[[OpenMethod]], _iterable_.[[Iterable]]). 1. If _iter_ is not an Object, throw a *TypeError* exception. 1. Let _iteratorRecord_ be ? GetIteratorDirect(_iter_). 1. Let _innerAlive_ be *true*.