From a900e55cec08c41ca9a691575e510dcddee286b1 Mon Sep 17 00:00:00 2001 From: lushnikov Date: Wed, 27 Jul 2016 12:02:59 -0700 Subject: [PATCH] DevTools: fix formatting of continue statement BUG=630718 R=kozyatinskiy Review-Url: https://codereview.chromium.org/2184193003 Cr-Commit-Position: refs/heads/master@{#408206} --- front_end/formatter_worker/JavaScriptFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front_end/formatter_worker/JavaScriptFormatter.js b/front_end/formatter_worker/JavaScriptFormatter.js index 97569ca18e..4616803ecb 100644 --- a/front_end/formatter_worker/JavaScriptFormatter.js +++ b/front_end/formatter_worker/JavaScriptFormatter.js @@ -299,7 +299,7 @@ WebInspector.JavaScriptFormatter.prototype = { if (node.consequent.type !== "BlockStatement") return "<"; } - } else if (node.type === "BreakStatement" || node.type === "ThrowStatement" || node.type === "ReturnStatement" || node.type === "ExpressionStatement") { + } else if (node.type === "BreakStatement" || node.type === "ContinueStatement" || node.type === "ThrowStatement" || node.type === "ReturnStatement" || node.type === "ExpressionStatement") { return "n"; } return "";