http://codereview.appspot.com/8706/diff/53720/53726 File tests/com/google/caja/tools/jsdoc/UpdocParserTest.java (right): http://codereview.appspot.com/8706/diff/53720/53726#newcode29 Line 29: + "$ Math.abs(-5)\n" On 2009/09/11 18:49:49, MikeSamuel wrote:
On 2009/09/11 18:06:07, jasvir wrote: > What in the rhino setup prevents js-java bridge from being used to
access and
> modify the local filesystem?
Nothing yet. This is actually using the JS math builtin. The java version would be accessed via java.lang.Math.abs.
I do have a TODO to sandbox the rhino implementation so that it can't reach the FS or network. I know of a project that does this, and can ask the guys involved for the magic incantations to do this. http://codereview.appspot.com/8706
