mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Bugfix for exception thrown when the name of a member seen by the parser matches a name on the Object prototype. closes #116
This commit is contained in:
parent
402159b8a8
commit
e0538ae011
@ -185,7 +185,7 @@ exports.Parser.prototype.astnodeToMemberof = function(node) {
|
||||
id = 'astnode'+scope.enclosingFunction.hashCode();
|
||||
doclet = this.refs[id];
|
||||
if (doclet && doclet.meta.vars && basename in doclet.meta.vars) {
|
||||
var alias = doclet.meta.vars[basename];
|
||||
var alias = doclet.meta.vars.hasOwnProperty(basename)? doclet.meta.vars[basename] : false;
|
||||
if (alias !== false) {
|
||||
return [alias, basename];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user