expose custome object or function to script environementt

buddhi mihara buddhi.mihara at live.com
Tue Feb 4 10:58:41 PST 2014


i am using second option you suggested.(using jsObject)
i used script object class to create a scriptObject called process.(similar to node process) ,but everytime i need to add a function(like abs() function in Math) to this scriptObject do i need to write a java class which extends from jsObject and create a new object of that class or is there any workaround.(in my script i need to access something like process.bind()).   		 	   		  


More information about the nashorn-dev mailing list