From f1a41023d9a21ccd121c10aea22eb897a9a95925 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Thu, 22 Jul 2021 08:27:35 -0700 Subject: [PATCH] Migrate core/field_registry.js to ES6 const/let --- core/field_registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_registry.js b/core/field_registry.js index 7f431ff7d..463308d3e 100644 --- a/core/field_registry.js +++ b/core/field_registry.js @@ -54,7 +54,7 @@ Blockly.fieldRegistry.unregister = function(type) { * @package */ Blockly.fieldRegistry.fromJson = function(options) { - var fieldObject = /** @type {?Blockly.IRegistrableField} */ ( + const fieldObject = /** @type {?Blockly.IRegistrableField} */ ( Blockly.registry.getObject(Blockly.registry.Type.FIELD, options['type'])); if (!fieldObject) { console.warn('Blockly could not create a field of type ' + options['type'] +