-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Class methods are incorrectly renamed #42
Comments
Is this a good place for a contributor to start? It seems like a good excuse to dig into the codebase. |
Would be an excellent place, and you'd be extremely welcome 😄 It think it's just a matter of having a similar check to this one further down, next to these ones. |
I can't reproduce the original problem. Using this code as import { parse } from 'acorn';
class Module {
parse () {
// ...
}
}
export default parse; When I run 'use strict';
var acorn = require('acorn');
class Module {
parse () {
// ...
}
}
var foo = null.parse;
module.exports = foo; So there's clearly a problem, as |
Yeah, turned out there were a couple of things going on here, fixed in 0.11.3. The method name got rewritten if the function was used in the module in question; the |
Discovered while refactoring:
The
parse
method name is incorrectly rewritten asacorn.parse
.The text was updated successfully, but these errors were encountered: