History

SyntaxError: Illegal return statement

Simon Legner committed 2 years ago

Commit f44c8171 parent b3908591 file · +1 −9Browse files

Showing the changes to assets/javascripts/debug.js (1 of 1 file). Show all

Unified · Split

assets/javascripts/debug.js+1−9
@@ -9,14 +9,6 @@ · 8 unmodified lines
9 * DS209: Avoid top-level return9 * DS209: Avoid top-level return
10 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md10 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
11 */11 */
12if (
13 !(typeof console !== "undefined" && console !== null
14 ? console.time
15 : undefined) ||
16 !console.groupCollapsed
17) {
18 return;
19}
20 12
21//13//
22// App14// App
@@ -118,7 +110,7 @@ this.viewTree = function (view, level, visited) { · 95 unmodified lines
118 `%c ${Array(level + 1).join(" ")}${110 `%c ${Array(level + 1).join(" ")}${
119 view.constructor.name111 view.constructor.name
120 }: ${!!view.activated}`,112 }: ${!!view.activated}`,
121 "color:" + ((view.activated && "green") || "red"),113 "color:" + ((view.activated && "green") || "red")
122 );114 );
123 115
124 for (var key of Object.keys(view || {})) {116 for (var key of Object.keys(view || {})) {