You might be able to copy the parser out of the Google Closure Compiler.
http://code.google.com/closure/compiler/ you can be sure it works, and is stable. I think though it uses Rhino under the hood, so you could look at that too.
http://www.mozilla.org/rhino/