From e04050cd710199763591270640fefa7b3a3d6aba Mon Sep 17 00:00:00 2001 From: kozbial Date: Mon, 26 Jul 2021 13:54:32 -0700 Subject: [PATCH] Migrate core/warning.js to ES6 const/let --- core/warning.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/warning.js b/core/warning.js index 9bbd9c91b..e596f0328 100644 --- a/core/warning.js +++ b/core/warning.js @@ -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');