Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing ToUint32 to ArrayAccumulation and Array Evaluation #153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -10967,7 +10967,7 @@ <h1>Runtime Semantics: ArrayAccumulation</h1>
1. Let _next_ be ? IteratorStep(_iterator_).
1. If _next_ is *false*, return _nextIndex_.
1. Let _nextValue_ be ? IteratorValue(_next_).
1. Let _status_ be CreateDataProperty(_array_, ToString(_nextIndex_), _nextValue_).
1. Let _status_ be CreateDataProperty(_array_, ToString(ToUint32(_nextIndex_)), _nextValue_).
1. Assert: _status_ is *true* .
1. Let _nextIndex_ be _nextIndex_ + 1.
</emu-alg>
Expand All @@ -10983,7 +10983,7 @@ <h1>Runtime Semantics: Evaluation</h1>
<emu-alg>
1. Let _array_ be ArrayCreate(0).
1. Let _pad_ be the ElisionWidth of |Elision|; if |Elision| is not present, use the numeric value zero.
1. Perform Set(_array_, `"length"`, _pad_, *false*).
1. Perform Set(_array_, `"length"`, ToUint32(_pad_), *false*).
1. NOTE: The above Set cannot fail because of the nature of the object returned by ArrayCreate.
1. Return _array_.
</emu-alg>
Expand All @@ -10992,7 +10992,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _array_ be ArrayCreate(0).
1. Let _len_ be the result of performing ArrayAccumulation for |ElementList| with arguments _array_ and 0.
1. ReturnIfAbrupt(_len_).
1. Perform Set(_array_, `"length"`, _len_, *false*).
1. Perform Set(_array_, `"length"`, ToUint32(_len_), *false*).
1. NOTE: The above Set cannot fail because of the nature of the object returned by ArrayCreate.
1. Return _array_.
</emu-alg>
Expand Down