Index: Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
diff --git a/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js b/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
index 7fce3d006505289c71e9b3fd546a336dbc1e9e9c..6854435711da764a06b621f7d349a6f1e0ec78b3 100644 |
--- a/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
+++ b/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
@@ -268,6 +268,8 @@ FormatterWorker.JavaScriptFormatter.prototype = { |
return ""; |
if (node.parent && node.parent.type === "FunctionExpression" && node.parent.parent && node.parent.parent.type === "Property") |
return ""; |
+ if (node.parent && node.parent.type === "FunctionExpression" && node.parent.parent && node.parent.parent.type === "CallExpression") |
+ return ""; |
if (node.parent && node.parent.type === "DoWhileStatement") |
return ""; |
if (node.parent && node.parent.type === "TryStatement" && node.parent.block == node) |