Hello,
I am currently working on an app using Blockly.
In that app I need to generate JavaScript code for separate blocks instead of the whole workspace.
Here, I try to generate JavaScript for a function block.
I define the function in the Blockly workspace like this:

Then, I get the block like this:

Now, I want to generate the JavaScript code of this block. I use the JavaScript.blockToCode function.
But when I do it I get this error message:

I have no idea how to deal with that error, maybe I missed a step in the generating process ?
Does anyone know how I could resolve this ?
Thank you in advance.