0,0 → 1,30 |
|
var api = { |
createPE: function() { |
var pe = net.outlyer.plugins.PluginEnvironment.create(); |
pe.exportGlobalObject("input", input); |
pe.exportGlobalObject("out", out); |
pe.exportGlobalObject("err", err); |
return pe; |
}, |
|
createSandbox: function(uri) { |
return api.createPE().createSandbox(uri); |
}, |
}; |
|
var sb = api.createSandbox(new java.io.File("sandboxed-sandbox.js").toURI()); |
|
sb.execute(); |
|
/* |
do { |
var line = ui.prompt("%> "); |
if (null == line || line.isEmpty()) { |
break; |
} |
} |
while (true); |
*/ |
|
// vim:set ts=4 et ai: // |