Native Nashorn Object vs JSObject

Serguei Mourachov smourachov at
Tue Nov 4 23:44:10 UTC 2014

It looks like some operations that are available for native Nashorn 
objects, are not implemented for JSObject.
For example, following script works and prints '6': engine.eval("var 
obj={};var key={}; obj[key]=6;print(obj[key])");
In case when 'obj' is an implementation of  JSObject, the script runs 
without any error, printing 'null'.


More information about the nashorn-dev mailing list