Migrate core/field_registry.js to ES6 const/let

This commit is contained in:
Aaron Dodson
2021-07-22 08:27:35 -07:00
parent b65242803b
commit f1a41023d9

View File

@@ -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'] +