-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Try not allowing string iteration #59683
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
Conversation
@typescript-bot run top800 |
@typescript-bot test top800 |
We actually had an incident related to this recently and patched String a few weeks ago! |
Oh hey, the self test is actually catching a bug:
|
The rest are strange string manipulation stuff which feels moderately dubious when it comes to "properly" handling indexes:
|
This is almost the exact same kind of bug we had. In our case we were spreading a string instead of an array of string. |
Also fun times, if you have an argument spread that's too large you may get a stack overflow |
@jakebailey Here are the results of running the top 800 repos with tsc comparing Something interesting changed - please have a look. Details
|
@jakebailey Here are some more interesting changes from running the top 800 repos suite Details
|
Trial for #59676 to see what happens in real world code