Innovenergy_trunk/frontend/node_modules/tmp/test/graceful.js

16 lines
265 B
JavaScript
Raw Permalink Normal View History

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 () {
throw new Error('Thrown on purpose');
});
});