Page 1 of 1

JavaScript 1.8

PostPosted: Wed Sep 07, 2011 4:02 pm
by david
Will you be implementing in 6.0.1 the partial support for JavaScript 1.8 Rhino 1.7R3 has?

Re: JavaScript 1.8

PostPosted: Tue Sep 13, 2011 8:18 am
by dpriddle
+1

Re: JavaScript 1.8

PostPosted: Tue Sep 13, 2011 3:32 pm
by jcompagner
We won't change the rhino version in a minor release but in the current trunk (so the next release) we already have the latest Rhino (1.7R3).

Re: JavaScript 1.8

PostPosted: Tue Sep 13, 2011 5:50 pm
by david
Thanks for the roadmap -- I did notice it in the revision history.

It looks like you have to explicitly enable js1.8 so was wondering if that will make it in as well:

JavaScript 1.8 support

Rhino 1.7R3 has partial support for JavaScript 1.8 contributed by Hannes Wallnöfer and Andreas Bolka. This includes expression closures and destructuring assignment shorthand but not generator expressions.

Note that JavaScript 1.8 features have to be enabled explicitly by selecting language version 180 in the shell, or Context.VERSION_1_8 in embedded mode.