I'm use Decorator autobind in front of class, but it displays undefined when the method of the class is fired.
Guide contributeur
Stack technique
javascript
Domaine
frontend
Type d'issue
bug
DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
3
Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
1-3 hours
Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
stale
ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
needs investigation
Prérequis
JavaScriptdecoratorsclass methods
Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
35
Direction de recherche
First, try to reproduce the issue by creating a minimal class with a method that uses the autobind decorator and call the method as a callback (e.g., setTimeout). Review the source code in the repository, particularly the autobind implementation, to understand how method binding is applied. Check if the issue is related to property descriptors or the way decorators are transpiled. Since there are no comments from maintainers, consider asking for a minimal reproduction in the issue thread.