Skip to content

Add Map and WeakMap upsert methods#1156

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:upsert
Sep 23, 2025
Merged

Add Map and WeakMap upsert methods#1156
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:upsert

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Implement the new methods from https://github.com/tc39/proposal-upsert:

  • Map.prototype.getOrInsert
  • Map.prototype.getOrInsertComputed
  • WeakMap.prototype.getOrInsert
  • WeakMap.prototype.getOrInsertComputed

Implement the new methods from https://github.com/tc39/proposal-upsert:

- Map.prototype.getOrInsert
- Map.prototype.getOrInsertComputed
- WeakMap.prototype.getOrInsert
- WeakMap.prototype.getOrInsertComputed
@bnoordhuis bnoordhuis merged commit 4be4647 into quickjs-ng:master Sep 23, 2025
127 checks passed
@bnoordhuis bnoordhuis deleted the upsert branch September 23, 2025 16:54
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.

2 participants