Conversation
There was a problem hiding this comment.
Be aware that a Set amount value necessarily lists its elements in descending order, just like the payload of a CopySet amount value. See
list = coerceToElements(list);and
How does that affect the desirability or relevance of this change? (Not rhetorical. I genuinely don't know yet.)
949cab5 to
c488503
Compare
32e6b7b to
941e84b
Compare
🦋 Changeset detectedLatest commit: a58e436 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I'm actually not clear on what this is even asking, since |
941e84b to
d3fd205
Compare
I no longer think it is relevant, so nevermind. |
| outResults, | ||
| ) && |
There was a problem hiding this comment.
| outResults, | |
| -1, | |
| ) && |
There was a problem hiding this comment.
or am I missing something?
There was a problem hiding this comment.
This is a call to pairsHasSplit, which is analogous to confirmElementsHasSplit but lacks a direction parameter because it's only applicable to CopyBag payloads and so always iterates by descending array index. There's coverage in packages/patterns/test/containerHasSplit.test.js , but I've just updated src/ comments as well.
e1c92b3 to
aa68fed
Compare
aa68fed to
a58e436
Compare
Ref #3065 (comment)
Description
Avoids returning result arrays with elements in reversed order.
Security Considerations
None known.
Scaling Considerations
n/a
Documentation Considerations
Ignored.
Testing Considerations
Updated tests from #3065.
Compatibility Considerations
This is a behavior change, but I don't think
containerHasSpliteven has use yet, nor do I expect reliance upon the counterintuitive behavior.Upgrade Considerations
I think this fix falls below the level of inclusion in NEWS.md, but could be persuaded out of that position.