esdoc-plugins
esdoc-plugins copied to clipboard
ECMAScript proposals bug: Cannot read property 'charAt' of undefined
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
Having the same issue
Duplicate of https://github.com/esdoc/esdoc-plugins/issues/28
Simply change it to if (autoPrivate && doc.name && doc.name.charAt(0) === '_') {