Create empty environment?

Peter Michaux petermichaux at gmail.com
Mon Jan 20 21:15:16 PST 2014


Hi,

When I create a new Nashorn script engine, it seems to come preloaded with globals like `print` which are not part of the ECMAScript standard. How can I create an "empty" environment that only has the globals defined in the standard?

Thanks,
Peter


More information about the nashorn-dev mailing list