mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Migrate core/warning.js to ES6 const/let
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user