Open maple-leaf opened 5 years ago
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:
npx esdoc
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) === '_') {
if (autoPrivate && doc.name && doc.name.charAt(0) === '_') {
Repository to produce bug: https://github.com/maple-leaf/esdoc-proposals-plugin-bug-reproduce
source code in repo:
Install npm deps and generate doc by
npx esdoc
will raise error: