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
Normative: add set methods #3306
base: main
Are you sure you want to change the base?
Conversation
Rather than suggest changes here, I've filed a PR against the set-methods branch: #3308 |
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.
In isDisjointFrom, there's a "Set thisSize to the number of elements in O.[[SetData]]." line, but there's a bunch of other places that use SetDataSize. I see the difference - the AO skips empty values, the referenced line does not - but is that a problem? it seems like they should maybe all skip empty values?
<emu-alg> | ||
1. If _obj_ is not an Object, throw a *TypeError* exception. | ||
1. Let _rawSize_ be ? Get(_obj_, *"size"*). | ||
1. Let _numSize_ be ? ToNumber(_rawSize_). |
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.
does this (and the below ToIntegerOrInfinity coercion) conflict with your "no coercion" initiative?
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.
Yup, but there wasn't much appetite to retroactively apply that to existing stage 3 proposals.
Not a problem - the subsequent lines explicitly handle |
See proposal.