esdoc-plugins icon indicating copy to clipboard operation
esdoc-plugins copied to clipboard

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

Open maple-leaf opened this issue 6 years ago • 2 comments

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

maple-leaf avatar Nov 28 '18 10:11 maple-leaf

Having the same issue

ghost avatar Jun 06 '19 08:06 ghost

Duplicate of https://github.com/esdoc/esdoc-plugins/issues/28

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

DanielRuf avatar Aug 24 '19 17:08 DanielRuf