Migrate core/warning.js to ES6 const/let

This commit is contained in:
kozbial
2021-07-26 13:54:32 -07:00
committed by Monica Kozbial
parent be05457fdf
commit e04050cd71

View File

@@ -145,8 +145,8 @@ Blockly.Warning.prototype.setText = function(text, id) {
* @return {string} All texts concatenated into one string.
*/
Blockly.Warning.prototype.getText = function() {
var allWarnings = [];
for (var id in this.text_) {
const allWarnings = [];
for (let id in this.text_) {
allWarnings.push(this.text_[id]);
}
return allWarnings.join('\n');