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