marcelduran/yslow — Issue #20: Rhino throws uncaught JavaScript runtime exception: ReferenceError: "window" is not defined
Author: madr
Created: 2012-03-07 10:29:25+00:00
State: open

I cloned the repo and tried to run yslow in rhino with the following:

java -jar rhino.jar yslow.js http://madr.se/

and got this:

js: uncaught JavaScript runtime exception: ReferenceError: "window" is not defined.

In several google groups some extra parameters were suggested, for example `-opt -1` which I tried too.

java -jar rhino.jar yslow.js -opt -1 http://madr.se/

Same thing.

Is this a bug or am I doing it wrong? My skills in env.js is too brief for me to find it out myself.
If it works, please describe the correct use with Rhino here and update the README with rhino instructions.