Disabling extensions
    HRJet 
    hrjet9 at gmail.com
       
    Wed Mar 19 20:43:37 UTC 2014
    
    
  
Hi,
How do I disable some or all of the nashorn extensions? I am
especially interested in disabling the creation of attributes such as:
exit, quit, load, etc.
I can confirm that this works:
  jsContext = jsEngine.getContext()
  scope = jsContext.getAttributesScope("exit")
  jsContext.removeAttribute("exit", scope)
However, it would be nicer to disable their creation itself.
thanks,
HRJ
    
    
More information about the nashorn-dev
mailing list