Skip to content

Commit 666513a

Browse files
committed
fix name property when value is null
1 parent 52c995f commit 666513a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/utils/comment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ var comment = function(ast) {
3535
this.annotations.push(child);
3636
} else {
3737
var name = child.kind.toLowerCase();
38+
if (typeof child.name === 'string') {
39+
name = child.name.toLowerCase();
40+
}
3841
if (!this.tags.hasOwnProperty(name)) {
3942
this.tags[name] = [];
4043
}

0 commit comments

Comments
 (0)