Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix declaration for Array.prototype[Symbol.unscopables]#36540

Merged
rbuckton merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
fix34610microsoft/TypeScript:fix34610Copy head branch name to clipboard
Jan 31, 2020
Merged

Fix declaration for Array.prototype[Symbol.unscopables]#36540
rbuckton merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
fix34610microsoft/TypeScript:fix34610Copy head branch name to clipboard

Conversation

@rbuckton

Copy link
Copy Markdown
Contributor

Fixes the incorrect definition of Array.prototype[Symbol.unscopables]

Fixes #34610

* when they will be absent when used in a 'with' statement.
*/
[Symbol.unscopables](): {
[Symbol.unscopables]: {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should’ve been applied to src/lib/lib.es2015.symbol.wellknown.d.ts.


I’m fixing that in #42566.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array.prototype[Symbol.unscopables] is not a function

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.