Re: sandbox module in gjs

In spidermonkeys js shell there is evalcx() that takes an additional
global object argument, so one can do like this:

g = {foo:42};

I think that would be simple and very useful.


On Fri, Aug 13, 2010 at 1:52 AM, Johan Dahlin <johan gnome org> wrote:
> On Sat, Aug 7, 2010 at 4:20 PM, Jonatan Liljedahl <lijon kymatica com> wrote:
>> Is there anything similar to Seeds sandbox module in Gjs?
> No, there's currently no sandboxing modules available for gjs,
> but I think it wouldn't be too much work to add something simple like
> the api you mentioned.
> I think it would be enough to create a Sandbox.eval() method or so, which
> just uses its own JSContext*.
> --
> Johan Dahlin

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]