mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
* chore: migrate generators/javascript/text.js to goog.module * chore: convert generators/javascript/text.js to named requires * refactor: convert generators/javascript/variables.js to goog.module * refactor: convert generators/javascript/variables_dynamic to goog.module
22 lines
538 B
JavaScript
22 lines
538 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2018 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Generating JavaScript for dynamic variable blocks.
|
|
*/
|
|
'use strict';
|
|
|
|
goog.module('Blockly.JavaScript.variablesDynamic');
|
|
|
|
const JavaScript = goog.require('Blockly.JavaScript');
|
|
/** @suppress {extraRequire} */
|
|
goog.require('Blockly.JavaScript.variables');
|
|
|
|
|
|
// JavaScript is dynamically typed.
|
|
JavaScript['variables_get_dynamic'] = JavaScript['variables_get'];
|
|
JavaScript['variables_set_dynamic'] = JavaScript['variables_set'];
|