From f7851aaf0fb81bdd2842bc677fa91a8e2dac4d35 Mon Sep 17 00:00:00 2001 From: alice Date: Sun, 2 Sep 2018 17:56:54 +0800 Subject: [PATCH] node.start may not be defined --- lib/output.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/output.js b/lib/output.js index 7f7e74df..68e3258a 100644 --- a/lib/output.js +++ b/lib/output.js @@ -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;