I am aware of tools like JSLint, but I'm not looking for style correctness, I need a tool or utility (preferably one that runs on Linux, bonus points for being in the ubuntu package manager) that can verify the syntactic correctness of a JavaScript file.
I just need to know that there are no syntax errors.
(Full disclosure, was going to put this check in a git commit hook, to ensure that syntactically incorrect JavaScript would not be committed. So it can be a style tool, but needs to be able to produce a "YES SYNTAX GOOD", or "NO SYNTAX BAD" result.)