Comment on last line of code causes errors



  • Having a comment as the last line of code in a module (including 'main') causes an error. A similar thing occurs when there is a non-terminating multi-line comment (a /* without a closing */) anywhere in the code.

    main:42
    // } })()

    SyntaxError: Unexpected end of input
    at flush (/opt/engine/dist/core/node_modules/q/q.js:110:17)



  • Huh, never noticed this, but it is correct. Same issue if I try it. Its easy to simply work around though.