Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Jan 23, 2017
1 parent 9f0726a commit f0ba77e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/babel-generator/src/node/parentheses.js
Expand Up @@ -166,10 +166,6 @@ export function UnaryLike(node: Object, parent: Object): boolean {
}

export function FunctionExpression(node: Object, parent: Object, printStack: Array<Object>): boolean {
if (t.isTaggedTemplateExpression(parent)) {
return true;
}

return isFirstInStatement(printStack, { considerDefaultExports: true });
}

Expand Down Expand Up @@ -227,6 +223,10 @@ function isFirstInStatement(printStack: Array<Object>, {
return true;
}

if (t.isTaggedTemplateExpression(parent)) {
return true;
}

if (considerDefaultExports && t.isExportDefaultDeclaration(parent, { declaration: node })) {
return true;
}
Expand Down
@@ -1,2 +1,2 @@
(() => {})``;
(function() {})``;
(function(){}``);

0 comments on commit f0ba77e

Please sign in to comment.