JSAdapter problem

Andreas Rieber rieberandreas at gmail.com
Mon May 27 03:06:52 PDT 2013


Hi,

i just try to get the jconsole-plugin working and found the following 
issue with JSAdapter:

var obj = new JSAdapter() {
     __get__: function (name) {
         return function() {
             print(name);
         };
     }
};

var func = obj.x;
func();
obj.x();

Expected output should be x x but it fails with no such function "x". 
Plain old Rhino did handle that case.

Andreas



More information about the nashorn-dev mailing list