-
Notifications
You must be signed in to change notification settings - Fork 150
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
Fails on pure functions that are spuriously bound #105
Comments
Thanks for reporting. That's quite an important bug. |
Turns out to be a bug in recast: benjamn/recast#264 Hopefully Recast can fix it soon enough, so we don't have to create a workaround. |
Resolves the issue of Recast bogusly printing the short form of arrow function when it's bound with .bind(this) Refs #105
This is now mostly solved by simply removing
The issue still remains when one decides to call some other methods, like:
This should be a fairly rare scenario, so waiting for Recast to fix their bug. |
Hey @nene, you've got a nice project here! And my first contribution would be to fix this long standing bug in Recast :) |
Thanks! |
Consider this code:
var x = function() { return 2; }.bind(this);
This incorrectly becomes
const x = () => 2.bind(this);
.The text was updated successfully, but these errors were encountered: