It appears that in Rhino, doing "myvar = undefined" is the same as doing
EngineBindings.remove(myvar), however in Nashorn the
EngineBindings.remove() operation behaves quite differently.
I've attached a Jython program that I've run under jdk7 and jdk8 that
point up the differences (in /RED ita
This worked for me:
*Install the JDK8 and create an alias for your JDK's jjs (Nashorn
Interpreter), e.g., if you create a file called test.js, you can run the
program with:*
*$ jjs test.js*
*Mac OS = alias
jjs=’/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/jjs’*
http://s
+1
Nicely done, Sundar.
/M
On 07 May 2014, at 16:50, A. Sundararajan
wrote:
> Thanks. Fixed semicolons in
> http://cr.openjdk.java.net/~sundar/8042600/webrev.01/
>
> -Sundar
>
> On Wednesday 07 May 2014 07:23 PM, Hannes Wallnoefer wrote:
>> I would prefer having semicolons after statements
+1
(and I hate __proto__)
/M
On 06 May 2014, at 10:06, A. Sundararajan
wrote:
> Please review http://cr.openjdk.java.net/~sundar/8042364/
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8042364
>
> Thanks,
> -Sundar