Skip to content

Commit 8056e78

Browse files
authored
Editorial: Sync with recent 262 changes (#6)
1 parent d76f65b commit 8056e78

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

spec.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<meta charset="utf8">
33
<pre class="metadata">
44
title: Proposal Iterator Join
5-
stage: 0
5+
stage: 3
66
contributors: Kevin Gibbons
77
</pre>
88

@@ -16,27 +16,27 @@ <h1>Iterator.prototype.join ( _separator_ )</h1>
1616
<p>This method converts the values of the iterator to Strings, and then concatenates these Strings, separated by occurrences of the _separator_. If no separator is provided, a single comma is used as the separator.</p>
1717
<p>It performs the following steps when called:</p>
1818
<emu-alg>
19-
1. Let _O_ be the *this* value.
20-
1. If _O_ is not an Object, throw a *TypeError* exception.
21-
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _O_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
19+
1. Let _obj_ be the *this* value.
20+
1. If _obj_ is not an Object, throw a *TypeError* exception.
21+
1. Let _iterated_ be the Iterator Record { [[Iterator]]: _obj_, [[NextMethod]]: *undefined*, [[Done]]: *false* }.
2222
1. If _separator_ is *undefined*, then
2323
1. Let _sep_ be *","*.
2424
1. Else,
2525
1. Let _sep_ be Completion(ToString(_separator_)).
2626
1. IfAbruptCloseIterator(_sep_, _iterated_).
27-
1. Set _iterated_ to ? GetIteratorDirect(_O_).
28-
1. Let _R_ be the empty String.
27+
1. Set _iterated_ to ? GetIteratorDirect(_obj_).
28+
1. Let _result_ be the empty String.
2929
1. Let _first_ be *true*.
3030
1. Repeat,
3131
1. Let _value_ be ? IteratorStepValue(_iterated_).
32-
1. If _value_ is ~done~, return _R_.
32+
1. If _value_ is ~done~, return _result_.
3333
1. If _first_ is *true*, then
3434
1. Set _first_ to *false*.
3535
1. Else,
36-
1. Set _R_ to the string-concatenation of _R_ and _sep_.
36+
1. Set _result_ to the string-concatenation of _result_ and _sep_.
3737
1. If _value_ is neither *undefined* nor *null*, then
38-
1. Let _S_ be Completion(ToString(_value_)).
39-
1. IfAbruptCloseIterator(_S_, _iterated_).
40-
1. Set _R_ to the string-concatenation of _R_ and _S_.
38+
1. Let _valueString_ be Completion(ToString(_value_)).
39+
1. IfAbruptCloseIterator(_valueString_, _iterated_).
40+
1. Set _result_ to the string-concatenation of _result_ and _valueString_.
4141
</emu-alg>
4242
</emu-clause>

0 commit comments

Comments
 (0)