Throw JS section syntax errors during code generation.
Add JS section syntax error test.