Skip to content

Conversation

anba
Copy link
Contributor

@anba anba commented Jul 3, 2025

See #4112 (comment) for the testing plan.

@anba anba requested review from a team as code owners July 3, 2025 06:54
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Jul 11, 2025
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jul 15, 2025
@michaelficarra
Copy link
Member

Tests have been validated with the polyfill in tc39/proposal-joint-iteration#44. I'll do a review for completeness soon and then ask for Stage 3. Thanks for implementing these, @anba.

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't do a real review, just skimmed most of it. As a reviewer, it'd be very helpful if you could cross-reference these with the testing plan. I hate asking for extra work, but anything that makes it easier for us to do the review in small chunks without having to swap in extra context is appreciated.

One test that occurred to me that I didn't see in this PR or the testing plan (although as I said, I only skimmed it so I may have missed it) is verifying the actual behaviour when mode is missing. In other words I see we test thoroughly that absent or undefined mode is handled, but not what it actually does.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer we don't compute a large list of expected results inline in a test using what is essentially a mini-polyfill. When the test fails, it's unclear whether the implementation or the mini-polyfill is wrong.

There was some more discussion on this re. locale-sensitive testing in the talk I presented in the April TC39 meeting. slides, discussion

Same for zipKeyed/basic.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants