sandbox module in gjs



Is there anything similar to Seeds sandbox module in Gjs?

something like this:

c = new imports.sandbox.Context;
c.global.foo = 123;
c.eval("print(foo);bar=42;"); //prints 123
print(c.global.bar); //prints 42
c.destroy();

/Jonatan


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