Skip to content

Conversation

DanielRosenwasser
Copy link
Member

@HolgerJeromin
Copy link
Contributor

HolgerJeromin commented Jul 15, 2020

What about "the others"?
The linked issue mentioned this list (I removed fdescribe from the list):
["closed", "event", "name", "length", "location", "parent", "top", ],

@orta
Copy link
Contributor

orta commented Sep 10, 2020

For someone looking at this, the change means that reads to name will now give an error

declare const name2: never;
declare const name3: void;

declare function f(str: string): void

f(name2) // Fine
f(name3) // Error

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.

Dangerous "name" (and potentially others) global
4 participants