Ionut G. Stan wrote:
On Aug 2, 12:17 am, Daniel Friesen <[email protected]> wrote:
Updated (the issue with Rhino being broken was actually the cvs command
I was using wasn't checking out the new json directory)
$ ant jar
$ java -jar build/rhino1_7R3pre/js.jar -version 170
Rhino 1.7 release 1 2008 11 26
js> var foo = { __iterator__ : function(onlyKeys) { print(onlyKeys);
yield 0; } };
js> for ( let f in foo ) {}
true
js> for each ( let f in foo ) {}
true
js>
There's something wrong in your process. I've just updated from CVS,
executed your commands and worked flawlessly. There's one thing that
bothers me. Why the first line outputted by Rhino is: "Rhino 1.7
release 1 2008 11 26"? It should have outputted the date when you
built the sources, which I assume was not November 26th, 2008.
cvs -d :pserver:[email protected]:/cvsroot update -d -R
./mozilla/js/rhino/
This is the command I'm using for updating from cvs.
I set my JAVA_HOME with
export JAVA_HOME=/usr/lib/jvm/java-6-sun
Run:
ant jar
And to start up the jar built:
java -jar build/rhino1_7R3pre/js.jar -version 170
It feels a little strange myself as well. I see JSON and JS 1.8 code
inside the source code I have, but -version 180 gives me an error.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino