mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
prevent a crash when only some parameters have default values (#555)
This commit is contained in:
parent
46cbd5c452
commit
e2b454512c
@ -76,7 +76,9 @@ walkers[Syntax.ArrowFunctionExpression] = function(node, parent, state, cb) {
|
||||
}
|
||||
|
||||
for (i = 0, l = node.defaults.length; i < l; i++) {
|
||||
cb(node.defaults[i], node, state);
|
||||
if (node.defaults[i]) {
|
||||
cb(node.defaults[i], node, state);
|
||||
}
|
||||
}
|
||||
|
||||
cb(node.body, node, state);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user