blob: e52293ec03deca8492f2ec089b7d99cb4c2b82d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
(function (env) {
try {
var sandbox = require('chiron/sandbox').sandbox;
var base = require('chiron/base');
var log = base.List();
sandbox('test/iojs/program', {print: log.push});
return [200, {'Content-type': 'text/plain'}, log.eachIter(base.add("\n"))];
} catch (exception) {
return [500, {'Content-type': 'text/plain'}, [''+(exception.message || exception)]];
}
});
|