2016-11-03 01:33:53 +01:00
|
|
|
var
|
|
|
|
tmp = require('../lib/tmp'),
|
|
|
|
spawn = require('./spawn');
|
|
|
|
|
|
|
|
var graceful = spawn.arg;
|
|
|
|
|
|
|
|
if (graceful) {
|
|
|
|
tmp.setGracefulCleanup();
|
|
|
|
}
|
|
|
|
|
|
|
|
spawn.tmpFunction(function (err, name) {
|
|
|
|
spawn.out(name, function () {
|
2016-11-16 01:59:39 +01:00
|
|
|
throw new Error('Thrown on purpose');
|
2016-11-03 01:33:53 +01:00
|
|
|
});
|
|
|
|
});
|