jashkenas/coffeescript
Voir sur GitHubBug: Wrong `this` in bound methods of nested classes
Open
#5 222 ouverte le 18 juil. 2019
bughelp wanted
Métriques du dépôt
- Stars
- (16 577 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
While upgrading an application to CS2 we ran into the following issue in an obscure usage of nested classes.

As you can see, the nested bound method thought its this is the parent class. This seems to happen on a "parse" level, because it's replaced in the code. This lead to tricky to catch bug on our side.