Migrate core/utils/deprecation.js to ES6 const/let

This commit is contained in:
kozbial
2021-07-13 17:16:17 -07:00
committed by Monica Kozbial
parent 632ef12ed5
commit cd4831537e

View File

@@ -31,8 +31,8 @@ goog.provide('Blockly.utils.deprecation');
*/
Blockly.utils.deprecation.warn = function(
name, deprecationDate, deletionDate, opt_use) {
var msg = name + ' was deprecated on ' + deprecationDate +
' and will be deleted on ' + deletionDate + '.';
let msg = name + ' was deprecated on ' + deprecationDate +
' and will be deleted on ' + deletionDate + '.';
if (opt_use) {
msg += '\nUse ' + opt_use + ' instead.';
}