You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Class constructor debugInfo cannot be invoked without 'new' #3591
Is there a reason that debugInfo is defined as a class? I think defining it as a function would resolve the issue. I have refactored it to a function locally and there's no regression (that is, all existing tests pass). If all this sounds right, I'm happy to make a PR. (This is literally my first comment on GitHub and would be my first PR.)
Activity
matthew-dean commentedon Jan 21, 2021
I remember finding the same when trying to convert to TypeScript. I'm not sure what the resolution should be / was though.
drdevlin commentedon Mar 5, 2021
Is there a reason that debugInfo is defined as a class? I think defining it as a function would resolve the issue. I have refactored it to a function locally and there's no regression (that is, all existing tests pass). If all this sounds right, I'm happy to make a PR. (This is literally my first comment on GitHub and would be my first PR.)
Fix less#3591: refactor debugInfo from class to function
Fix less#3591: refactor debugInfo from class to function (less#3613)