Skip to content

fix(WeakMapConstructor): readonly iterable items #43905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2021
Merged

fix(WeakMapConstructor): readonly iterable items #43905

merged 1 commit into from
May 20, 2021

Conversation

mfulton26
Copy link
Contributor

Fixes #43900

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
like `MapConstructor`, `WeakMapConstructor` should support receiving `Iterable<readonly [K, V]>` instead of `Iterable<[K, V]>`; otherwise tuples creates with `as const`, etc. cannot be safely passed in without casts, etc.
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Apr 30, 2021
@sandersn
Copy link
Member

sandersn commented May 7, 2021

Let's merge this after the 4.3 RC goes out, so it'll be in 4.4.

@sandersn sandersn merged commit 7901f35 into microsoft:master May 20, 2021
@mfulton26 mfulton26 deleted the patch-1 branch May 20, 2021 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

WeakMapConstructor: readonly iterable elements
4 participants