parent
b77703a942
commit
bf32905c3f
|
@ -417,6 +417,9 @@ FPp.needsParens = function(assumeExpressionContext) {
|
|||
if (parent.type === "ArrowFunctionExpression" && name === "body") {
|
||||
return true;
|
||||
}
|
||||
if (parent.type === "TaggedTemplateExpression") {
|
||||
return true;
|
||||
}
|
||||
|
||||
default:
|
||||
if (
|
||||
|
|
|
@ -43,6 +43,15 @@ var z = Object(123);
|
|||
"
|
||||
`;
|
||||
|
||||
exports[`test expression.js 1`] = `
|
||||
"() => ({}\`\`);
|
||||
({})\`\`;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
(() => ({})\`\`);
|
||||
({})\`\`;
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`test objects.js 1`] = `
|
||||
"/* @flow */
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
() => ({}``);
|
||||
({})``;
|
Loading…
Reference in New Issue