Skip to content

Implement Promise.allKeyed() and Promise.allSettledKeyed()#2314

Merged
lahma merged 1 commit into
sebastienros:mainfrom
lahma:await-dictionary
Mar 6, 2026
Merged

Implement Promise.allKeyed() and Promise.allSettledKeyed()#2314
lahma merged 1 commit into
sebastienros:mainfrom
lahma:await-dictionary

Conversation

@lahma

@lahma lahma commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Implement Promise.allKeyed() and Promise.allSettledKeyed() static methods from the TC39 Stage 2.7 await-dictionary proposal
  • These methods accept an object (dictionary) of promises and return an object with the same keys mapped to resolved values (or settled status objects)
  • Remove await-dictionary from excluded test262 features — all 24 test cases pass (12 files × strict + sloppy)

Test plan

  • All 24 await-dictionary test262 tests pass
  • Full test262 suite: 92,215 passed, 0 failures
  • Main test suite: 2,756 passed, 0 failures

🤖 Generated with Claude Code

…tionary)

Add support for the TC39 Stage 2.7 await-dictionary proposal which adds
Promise.allKeyed() and Promise.allSettledKeyed() static methods. These work
like Promise.all/allSettled but accept an object and return an object with
the same keys mapped to resolved values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lahma
lahma enabled auto-merge (squash) March 6, 2026 14:15
@lahma
lahma merged commit ed9baa2 into sebastienros:main Mar 6, 2026
6 of 8 checks passed
@lahma
lahma deleted the await-dictionary branch March 24, 2026 21:40
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.

1 participant