On Nov 30 2011, 3:51 pm, John Wright <johngeorge.wri...@gmail.com>
wrote:
> Hey there,
> I'm just trying to a have a quick play with Envjs to see if I could
> use it as a JS unit testing suite within Symfony.
> I downloaded the "all you'll need" 1.2 release and tried to load it
> with rhino... however, nothing really happened and I'm not getting any
> errors. I can't seem to find anyone else with this problem (which is
> worrying). Here's what I'm doing:
> $ ls
> env.rhino.1.2.js
> $ js
> Rhino 1.7 release 3 2011 05 09
> js> load("env.rhino.1.2.js");
> js> window
> js: uncaught JavaScript runtime exception: ReferenceError: "window" is
> not defined.
> js> Envjs
> js: uncaught JavaScript runtime exception: ReferenceError: "Envjs" is
> not defined.
> Anyone got a clue what might be wrong?
My question is where exactly is env.rhino.js? In my case:
js> load('env.rhino.js');
js: "<stdin>", line 10: illegal character
js: load('env.rhino.js');
js: ^
js> load("env.rhino.js");
js: Couldn't read source file "env.rhino.js: env.rhino.js (The system
cannot find the file specified)".
js>
I have checked the entire source file but couldn't locate a file named
env.rhino.js. Is it meant to be a file or a path + a file? I'm running
this on Cygwin.
Any pointers will be much appreciated.
Thanks