mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
prevent crash on ExperimentalRestProperty nodes (#1091)
This commit is contained in:
parent
bd1cb9d166
commit
2e04416a9a
@ -164,7 +164,7 @@ walkers[Syntax.DoWhileStatement] = function(node, parent, state, cb) {
|
||||
walkers[Syntax.EmptyStatement] = leafNode;
|
||||
|
||||
walkers[Syntax.ExperimentalRestProperty] = function(node, parent, state, cb) {
|
||||
cb(node.argument);
|
||||
cb(node.argument, node, state);
|
||||
};
|
||||
|
||||
walkers[Syntax.ExperimentalSpreadProperty] = walkers[Syntax.ExperimentalRestProperty];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user