From 78fee484597bba1ccfc9a437b9de0b74cc76bdb7 Mon Sep 17 00:00:00 2001 From: kozbial Date: Wed, 21 Jul 2021 15:32:39 -0700 Subject: [PATCH] Migrate core/field_label.js to ES6 const/let --- core/field_label.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_label.js b/core/field_label.js index 5dc434c92..4a19dc07e 100644 --- a/core/field_label.js +++ b/core/field_label.js @@ -64,7 +64,7 @@ Blockly.FieldLabel.prototype.DEFAULT_VALUE = ''; * @nocollapse */ Blockly.FieldLabel.fromJson = function(options) { - var text = Blockly.utils.replaceMessageReferences(options['text']); + const text = Blockly.utils.replaceMessageReferences(options['text']); // `this` might be a subclass of FieldLabel if that class doesn't override // the static fromJson method. return new this(text, undefined, options);