1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 12:50:04 +02:00
Files
gitlit/node_modules/tmp/test/graceful.js
2018-06-03 13:57:23 +02:00

16 lines
265 B
JavaScript

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');
});
});