Differences between Rhino and Nashorn when using Bindings.remove(x)

2014-05-11 Thread Eric Woudenberg
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

Re: Missing jjs on Mac OS

2014-05-11 Thread Marcelo Rodrigues Costa
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

Re: RFR 8042600: Add more samples in nashorn/samples directory

2014-05-11 Thread Marcus Lagergren
+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

Re: RFR 8042364: Make __proto__ ES6 draft compliant

2014-05-11 Thread Marcus Lagergren
+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