Skip to content

Commit 8aada65

Browse files
committed
Added a UI string, some minor cleanup.
1 parent 2e49f0b commit 8aada65

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/build-application/build_ecmascript_debugger_6_0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ window.app.builders.EcmascriptDebugger["6.0"] = function(service)
9393
/* Return Values */
9494
cls.ReturnValuesView.prototype = ViewBase;
9595
new cls.ReturnValuesView('return-values',
96-
"Return Values",
96+
ui_strings.M_VIEW_LABEL_RETURN_VALUES,
9797
'scroll mono');
9898
cls.ReturnValuesView.create_ui_widgets();
9999

src/ecma-debugger/stop_at.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ cls.EcmascriptDebugger["6.0"].StopAt = function()
197197
{
198198
const
199199
FRAME_LIST = 0,
200-
RETURN_VALUE_LIST = 1,
201200
// sub message BacktraceFrame
202201
FUNCTION_ID = 0,
203202
ARGUMENT_OBJECT = 1,

src/ecma-debugger/templates.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,7 @@
416416
{
417417
var short_value = value.length > STRING_MAX_VALUE_LENGTH
418418
? value.slice(0, STRING_MAX_VALUE_LENGTH) + "…"
419-
: "";
420-
value = helpers.escapeTextHtml(value).replace(/"/g, "'");
419+
: null;
421420
if (short_value)
422421
{
423422
value_template.push(
@@ -428,7 +427,7 @@
428427
"class", "folder-key"
429428
],
430429
["value",
431-
"\"" + helpers.escapeTextHtml(short_value) + "\"",
430+
"\"" + short_value + "\"",
432431
"class", type,
433432
"data-value", "\"" + value + "\"",
434433
]

src/ecma-debugger/view_return_values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ cls.ReturnValuesView = function(id, name, container_class)
7070
this._container = null;
7171
this._models = [];
7272
this._search_term = "";
73-
}
73+
};
7474

7575
this._init(id, name, container_class);
7676
};

src/ui-strings/ui_strings-en.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,3 +1703,7 @@ ui_strings.S_RETURN_VALUES_FUNCTION_FROM = "Returned from %s:%s";
17031703

17041704
/* DESC: Tooltip displayed when hovering the arrow going forward in Return Values. The first variable is a file name, the second a line number */
17051705
ui_strings.S_RETURN_VALUES_FUNCTION_TO = "Returned to %s:%s";
1706+
1707+
/* DESC: Section in the script side panel for return values. */
1708+
ui_strings.M_VIEW_LABEL_RETURN_VALUES = "Return Values";
1709+

0 commit comments

Comments
 (0)