-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: CreateListFromArrayLike
: change element type list to a 2-state enum
#3409
Conversation
337fe91
to
f520124
Compare
f520124
to
2df5e43
Compare
Temporal calls this AO with |
True - we'd need I'll leave this as a draft until the three of you can come to a decision, but the hope was that this PR would help get us to complete removal of |
The Temporal caller to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
2df5e43
to
1e06d09
Compare
1e06d09
to
bc0e504
Compare
spec.html
Outdated
): 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 _elementTypes_ is not present, set _elementTypes_ to « Undefined, Null, Boolean, String, Symbol, Number, BigInt, Object ». | ||
1. If _elementTypes_ is not present, set _elementTypes_ to ~all~. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. If _elementTypes_ is not present, set _elementTypes_ to ~all~. | |
1. If _validElementTypes_ is not present, set _validElementTypes_ to ~all~. |
Since that use case is being removed, and since this AO has long existed and we didn't see much general use of it, so seems fine to me to not make it general. |
spec.html
Outdated
@@ -6447,23 +6447,23 @@ <h1> | |||
<h1> | |||
CreateListFromArrayLike ( | |||
_obj_: an ECMAScript language value, | |||
optional _elementTypes_: a List of names of ECMAScript Language Types, | |||
optional _elementTypes_: ~all~ or ~property-key~, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter actually gains nothing from being an enum. Though an enum is usually better, a boolean validatePropertyKeys
or something would be just as clear here.
bc0e504
to
64eded3
Compare
64eded3
to
6d6515a
Compare
Per editor call discussion.
Related: #3339.