Index: third_party/WebKit/Source/devtools/front_end/formatter_worker/JavaScriptFormatter.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/formatter_worker/JavaScriptFormatter.js b/third_party/WebKit/Source/devtools/front_end/formatter_worker/JavaScriptFormatter.js |
index ae9a5de57a9905ded1113e0a303b0661475c98b2..97569ca18e5ff854f50b19a26d564cfa39e03632 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/formatter_worker/JavaScriptFormatter.js |
+++ b/third_party/WebKit/Source/devtools/front_end/formatter_worker/JavaScriptFormatter.js |
@@ -277,6 +277,8 @@ WebInspector.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 === "VariableDeclarator") |
+ return ""; |
if (node.parent && node.parent.type === "FunctionExpression" && node.parent.parent && node.parent.parent.type === "CallExpression") |
return ""; |
if (node.parent && node.parent.type === "DoWhileStatement") |