mo4islona / node-blockly

Blockly for Node.js and Browser via CommonJS module
133 stars 81 forks source link

Expose blockly functions #34

Closed Alexejhero closed 4 years ago

Alexejhero commented 5 years ago

Certain blocks use functions that are exposed by blockly, such as mathRandomInt.

There is also the toLowerCase function defined by blockly on String.prototype.

These functions cannot be accessed in node-blockly since they are not exposed.

Alexejhero commented 4 years ago

Nevermind, apparently Blockly includes those functions with the generated code.

Alexejhero commented 4 years ago

Also, I'm stupid. The toLowerCase function is a JavaScript native function.