Native Nashorn Object vs JSObject

Serguei Mourachov smourachov at gmail.com
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'.

SM




More information about the nashorn-dev mailing list