diff --git a/core/field_label_serializable.js b/core/field_label_serializable.js index 0201db130..0d1acf52a 100644 --- a/core/field_label_serializable.js +++ b/core/field_label_serializable.js @@ -47,7 +47,7 @@ Blockly.utils.object.inherits(Blockly.FieldLabelSerializable, * @nocollapse */ Blockly.FieldLabelSerializable.fromJson = function(options) { - var text = Blockly.utils.replaceMessageReferences(options['text']); + const text = Blockly.utils.replaceMessageReferences(options['text']); // `this` might be a subclass of FieldLabelSerializable if that class doesn't // override the static fromJson method. return new this(text, undefined, options);