Skip to content

Commit

Permalink
Editorial: Quick fixes for CreateListFromArrayLike
Browse files Browse the repository at this point in the history
- Capital 'B' on "Boolean"

- When an operation has an optional parameter X,
  the op doesn't do anything with X until either:
  - it has established that a value was passed to X, or
  - it has established that a value wasn't passed to X,
    and has set X to some value.
  • Loading branch information
jmdyck committed Sep 6, 2024
1 parent 6d6515a commit 401529b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6471,14 +6471,15 @@ <h1>
<h1>
CreateListFromArrayLike (
_obj_: an ECMAScript language value,
optional _requirePropertyKeys_: a boolean,
optional _requirePropertyKeys_: a Boolean,
): either a normal completion containing a List of ECMAScript language values or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>It is used to create a List value whose elements are provided by the indexed properties of _obj_. _elementTypes_ contains the names of ECMAScript Language Types that are allowed for element values of the List that is created.</dd>
</dl>
<emu-alg>
1. If _requirePropertyKeys_ is not present, set _requirePropertyKeys_ to *false*.
1. If _obj_ is not an Object, throw a *TypeError* exception.
1. Let _len_ be ? LengthOfArrayLike(_obj_).
1. Let _list_ be a new empty List.
Expand Down

0 comments on commit 401529b

Please sign in to comment.