Skip to content

Move Map.prototype.getOrInsert tests from staging#4472

Merged
ptomato merged 3 commits intotc39:mainfrom
dminor:upsert-Map-getOrInsert
May 12, 2025
Merged

Move Map.prototype.getOrInsert tests from staging#4472
ptomato merged 3 commits intotc39:mainfrom
dminor:upsert-Map-getOrInsert

Conversation

@dminor
Copy link
Contributor

@dminor dminor commented May 7, 2025

No description provided.

@dminor dminor requested review from a team as code owners May 7, 2025 19:47
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.

Thanks, these are indeed already in good shape to move out of staging.

Before merging, in each file:

  • Replace esid: proposal-upsert with esid: sec-map.prototype.getorinsert
  • Remove the noStrict flag

Copy link
Contributor

Choose a reason for hiding this comment

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

Here it'd be good to add assert.sameValue(map.get(-0), 43); at the end as well.

@dminor dminor requested a review from ptomato May 9, 2025 17:07
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

confirmed these tests pass on my polyfill as well

@ptomato ptomato force-pushed the upsert-Map-getOrInsert branch from 7c8fe0d to a22c25a Compare May 12, 2025 20:24
@ptomato ptomato merged commit 2e59aad into tc39:main May 12, 2025
11 checks passed
@dminor dminor mentioned this pull request May 13, 2025
74 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants