Skip to content

Commit 79a21b2

Browse files
committed
Revert "Fix displaying -0 in visual reports (#25)"
This reverts commit 3539a61. It gets stringified in VM so we'll fix it in there instead.
1 parent 3539a61 commit 79a21b2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

core/workspace_svg.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,15 +1095,7 @@ Blockly.WorkspaceSvg.prototype.reportValue = function(id, value) {
10951095
var contentDiv = Blockly.DropDownDiv.getContentDiv();
10961096
var valueReportBox = goog.dom.createElement('div');
10971097
valueReportBox.setAttribute('class', 'valueReportBox');
1098-
1099-
var valueAsString;
1100-
if (Object.is(value, -0)) {
1101-
valueAsString = '-0';
1102-
} else {
1103-
valueAsString = '' + value;
1104-
}
1105-
valueReportBox.textContent = valueAsString;
1106-
1098+
valueReportBox.textContent = value;
11071099
contentDiv.appendChild(valueReportBox);
11081100
Blockly.DropDownDiv.setColour(
11091101
Blockly.Colours.valueReportBackground,

0 commit comments

Comments
 (0)