The JSLint web site actually points out a few options. But I don’t run windows (for WSH) or Konfabulator, so that’s no good. I could try using Rhino, but I’d rather avoid a heavyweight JVM invocation (1.5s to run is too slow).
- Rhino does provide a
ReadFile()call, but not spidermonkey. How annoying.
- Spidermonkey provides a File() constructor, but it doesn’t appear to compile when enabled (I think this is down to spidermonkey being disassociated from the main mozilla source tree).
On to njs. That fails to even parse the blasted fulljslint.js, stopping on the first line with an unexplained “syntax error”.
Oh well. I guess I’d better go and try to get SpiderMonkey working again.
Update: Ian Bicking is coming to much the same conclusions about this…