Javascript sandboxing


#1

Hi,

Is there a way to sandbox javascript. Meaning no access to java / native objects and any module?
And then expose some specific java functions and javascript modules.

I need to sandbox some code, and it should not be too easy to access native objects.