node.start may not be defined

This commit is contained in:
alice 2018-09-02 17:56:54 +08:00
parent ea999b0e92
commit f7851aaf0f

View File

@ -482,6 +482,7 @@ function OutputStream(options) {
|| parent instanceof AST_Sequence && parent.expressions[0] === node
|| parent instanceof AST_Sub && parent.expression === node
|| parent instanceof AST_UnaryPostfix) {
if (!node.start) return;
var text = node.start.comments_before;
if (text && text._dumped !== self) {
text._dumped = self;