sandbox module in gjs
- From: Jonatan Liljedahl <lijon kymatica com>
- To: javascript-list gnome org
- Subject: sandbox module in gjs
- Date: Sat, 07 Aug 2010 21:20:50 +0200
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]