blockly-fluid 1.4.27 → 1.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -200,7 +200,10 @@ module.exports = (Blockly, { generator: languageGeneratorFallback, generators: l
|
|
|
200
200
|
if ((typeof next === "function") ? next() : next) this.setNextStatement(true, null);
|
|
201
201
|
} else {
|
|
202
202
|
if (output === "Color") (output = "Colour");
|
|
203
|
-
if ((typeof output === "function") && ![String, Number, Boolean, Array, Object].includes(output))
|
|
203
|
+
if ((typeof output === "function") && ![String, Number, Boolean, Array, Object].includes(output)) {
|
|
204
|
+
console.log(output, [String, Number, Boolean, Array, Object].includes(output));
|
|
205
|
+
output = output();
|
|
206
|
+
};
|
|
204
207
|
|
|
205
208
|
this.setPreviousStatement(false);
|
|
206
209
|
this.setNextStatement(false);
|