Skip to content
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

Some method names are recognized as anonymous, how can i get the correct method name? #44

Open
asfrank opened this issue Sep 30, 2020 · 0 comments

Comments

@asfrank
Copy link

asfrank commented Sep 30, 2020

insertFunctionCounter in visitor.js passes name(path.node.id ? path.node.id.name : path.node.name) as the name to this.cov.newFunction. However, when name is null, the result fnMap contains 'anonymous_' in their names, how can i get the correct name without 'anonymous_'?

name = name || '(anonymous_' + f + ')'; ---newFunction in source-coverage.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant