Closed GoogleCodeExporter closed 9 years ago
The SandboxEval() function is implemented in the SVN version of jslibs:
SandboxEval( scriptCode [ , queryCallback ] [ , operationLimitCount = 4096 ] )
For security reasons (scope inheritance), it is impossible to transmit a
JavaScript
object to the sandbox.
However, you can transmit primitive values (non-object) through a Query callback
function.
eg.
function QueryCallback(val) {
return val;
}
var res = SandboxEval('1 + 2 + Query(3)', QueryCallback);
Print( res ); // prints: 6
implementation:
http://www.google.com/codesearch/p?#JIBYGrKTwcg/src/jsstd/static.cpp&l=916
Original comment by sou...@gmail.com
on 5 Jan 2009 at 12:37
is it ok ? I close the issue.
Original comment by sou...@gmail.com
on 27 Feb 2009 at 4:10
Well It's just one of those features I think is possible in some way, but is to
complex a job to just throw on you.
I'll just throw this onto the list of things to contract someone for. After
we're
through a good bit of the current project at work, there might actually be some
seed
capital for starting work on another project, so I might be able to get someone
officially to help out.
Original comment by nadir.se...@gmail.com
on 27 Feb 2009 at 7:47
Original issue reported on code.google.com by
nadir.se...@gmail.com
on 12 Dec 2008 at 2:58