Hacker News new | ask | show | jobs
by marrone 6643 days ago
For finding those kinds of mistakes use jslint (http://jslint.com), though it doesnt catch calling a function with the wrong number of arguments (which may be what you intended anyways). If you download the source you can easily write a custom command in vim or emacs to run the current buffer through jslint.
1 comments

there is flymake with Javascript configuration for emacs. I'll give that a try. http://www.emacswiki.org/cgi-bin/wiki/FlymakeJavaScript