After upgrading 'Script Runner For Confluence' from version 5.0.5 to version 5.4.36.
I'm getting an error after macro run :"Uncaught SyntaxError: Unexpected end of input" in some of my existing Custom Script Macros.
Same code runs without any Issue on 5.0.5.
Can someone tell me what is the differences (if exist) between this 2 versions?
Found the cause :) .
Script validation must have changed.
';' as end of a statement is a must.
In previous version (5.0.5) ,if there's no more code in the block after a line, the ; was technically optional.
in new version
Comments in Script , if this was valid :
...
//My Comment Here
var test = 'Test';
...
Now it should be written :
...
/*My Comment Here*/
var test = 'Test';
...
Adding ';' to each statement and fixing comments to /*..*/ solved the upgrades issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.