When I place a // at the end of script
then click test run, the engine always
complain "syntax error" of this line.

I'm not sure if it is a bug, it won't
happen if you add some blank lines
below it.