Hello Mike,
thank you very much for this error report. I am able to reproduce this behavior. The problem is caused in the row 51076. Due to missing space in the actual row the operand for the return statement has been moved to the next row. In JavaScript the last statement within a row does not need to be terminated with ';'. Accordingly, the return statement is considered as not having any operands and the value 33 is considered as not belonging to the return statement. We will have to adapt the JavaScript Code Generator to take this special case in account. I put this issue on the to-do list for our next version.
As workaround just remove all else statement from your implementation. These are not necessary since in case of an if-condition being fulfilled the method is left with the return statement. For example:
if (Label == "None") return 0;
if (Label == "pAtm") return 1;
if (Label == "CO2r") return 2;
...
Another workaround is to generate the code with activated obfuscation. The obfuscator takes care of not wrapping text rows at inadequate positions.
Does it help you?
Best regards
Paul Banach