laurentj/slimerjs — pull request #12 by matthewkastor (2013-02-09 04:27:27+00:00)
Title: Added Firefox Console Redirector.exe

Added superfluous looking check on `SLIMERJSLAUNCHER`. It fixes an issue
where the batch file bails out while checking whether or not the path
exists.

Firefox Console Redirector should behave exactly as we intended the bat
file to behave except, the console redirection actually gets the output
back to the console on windows. There aren't any temp files involved, it
just works. I've put the help menu in and as far as I know it can
replace the batch file. All we really need is for a few people to test
it out. I compiled it for "Any CPU" so it should work on 32 and 64 bit
systems. One thing I don't like is that I couldn't find an asynchronous stream reader that would update the console on any input. As it stands, the best I found so far is the async. line reader. The redirected sterr and stdout from firefox show up in the console after every line break. So, if you test it out using the dump function from the firebug, jsconsole, scratchpad, etc. You'll have to add `\r`, `\n`, or `\r\n` to the end of your dump in order to flush it to the console immediately. I don't know if that's the same behavior as on other platforms.