mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +01:00
fix: remove deprecated use of objectUtils from generators (#6499)
This commit is contained in:
committed by
GitHub
parent
ce3ec78501
commit
224af0aa6b
@@ -13,7 +13,6 @@
|
||||
goog.module('Blockly.JavaScript');
|
||||
|
||||
const Variables = goog.require('Blockly.Variables');
|
||||
const objectUtils = goog.require('Blockly.utils.object');
|
||||
const stringUtils = goog.require('Blockly.utils.string');
|
||||
const {Block} = goog.requireType('Blockly.Block');
|
||||
const {Generator} = goog.require('Blockly.Generator');
|
||||
@@ -169,7 +168,7 @@ JavaScript.init = function(workspace) {
|
||||
*/
|
||||
JavaScript.finish = function(code) {
|
||||
// Convert the definitions dictionary into a list.
|
||||
const definitions = objectUtils.values(this.definitions_);
|
||||
const definitions = Object.values(this.definitions_);
|
||||
// Call Blockly.Generator's finish.
|
||||
code = Object.getPrototypeOf(this).finish.call(this, code);
|
||||
this.isInitialized = false;
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
goog.module('Blockly.Lua');
|
||||
|
||||
const objectUtils = goog.require('Blockly.utils.object');
|
||||
const stringUtils = goog.require('Blockly.utils.string');
|
||||
const {Block} = goog.requireType('Blockly.Block');
|
||||
const {Generator} = goog.require('Blockly.Generator');
|
||||
@@ -115,7 +114,7 @@ Lua.init = function(workspace) {
|
||||
*/
|
||||
Lua.finish = function(code) {
|
||||
// Convert the definitions dictionary into a list.
|
||||
const definitions = objectUtils.values(this.definitions_);
|
||||
const definitions = Object.values(this.definitions_);
|
||||
// Call Blockly.Generator's finish.
|
||||
code = Object.getPrototypeOf(this).finish.call(this, code);
|
||||
this.isInitialized = false;
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
goog.module('Blockly.PHP');
|
||||
|
||||
const objectUtils = goog.require('Blockly.utils.object');
|
||||
const stringUtils = goog.require('Blockly.utils.string');
|
||||
const {Block} = goog.requireType('Blockly.Block');
|
||||
const {Generator} = goog.require('Blockly.Generator');
|
||||
@@ -154,7 +153,7 @@ PHP.init = function(workspace) {
|
||||
*/
|
||||
PHP.finish = function(code) {
|
||||
// Convert the definitions dictionary into a list.
|
||||
const definitions = objectUtils.values(this.definitions_);
|
||||
const definitions = Object.values(this.definitions_);
|
||||
// Call Blockly.Generator's finish.
|
||||
code = Object.getPrototypeOf(this).finish.call(this, code);
|
||||
this.isInitialized = false;
|
||||
|
||||
Reference in New Issue
Block a user