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