diff options
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/utils.js b/lib/utils.js index 81ddfa63..f9c78431 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -249,12 +249,14 @@ function first_in_statement(stack, arrow) { if (p.expression === node) continue; } else if (p instanceof AST_Conditional) { if (p.condition === node) continue; + } else if (p instanceof AST_ExportDefault) { + return false; } else if (p instanceof AST_PropAccess) { if (p.expression === node) continue; } else if (p instanceof AST_Sequence) { if (p.expressions[0] === node) continue; - } else if (p instanceof AST_Statement) { - return p.body === node; + } else if (p instanceof AST_SimpleStatement) { + return true; } else if (p instanceof AST_Template) { if (p.tag === node) continue; } else if (p instanceof AST_UnaryPostfix) { |