Create empty environment?

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


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?


More information about the nashorn-dev mailing list