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 38d971da6ae2f0ad396fba05ae226e0a772449b1..7fce3d006505289c71e9b3fd546a336dbc1e9e9c 100644 |
--- a/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
+++ b/Source/devtools/front_end/script_formatter_worker/JavaScriptFormatter.js |
@@ -240,6 +240,10 @@ FormatterWorker.JavaScriptFormatter.prototype = { |
if (AT.punctuator(token, "}")) |
return "<ntn"; |
return "t"; |
+ } else if (node.type === "YieldExpression") { |
+ return "t"; |
+ } else if (node.type === "Super") { |
+ return "t"; |
} |
return AT.keyword(token) && !AT.keyword(token, "this") ? "ts" : "t"; |
}, |