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

ECMAScript proposals bug: Cannot read property 'charAt' of undefined #79

Open
maple-leaf opened this issue Nov 28, 2018 · 2 comments
Open

Comments

@maple-leaf
Copy link

maple-leaf commented Nov 28, 2018

Repository to produce bug: https://github.com/maple-leaf/esdoc-proposals-plugin-bug-reproduce

source code in repo:

const x = {};
x['d'] = function() {
    console.log('test');
};

Install npm deps and generate doc by npx esdoc will raise error:

Cannot read property 'charAt' of undefined
@ghost
Copy link

ghost commented Jun 6, 2019

Having the same issue

@DanielRuf
Copy link

Duplicate of #28

Simply change it to if (autoPrivate && doc.name && doc.name.charAt(0) === '_') {

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

2 participants