On Tue, Jun 26, 2012 at 5:34 PM, MikeM <[email protected]> wrote:

> I suppose I could keep using the same Context over and over, but I would
> need a way to wipe out any local var declarations between executions and
> only keep the built-ins.
>

On a similar note, you probably couldn't protect against:

Array.foo = whatever;

i suspect that the only safe way to do it is recreate the whole sandbox on
each run. Not doing so will eventually lead to weird behaviours, i
think (via sneaky modifications like custom properties on built-ins).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to