vartmp=require('../lib/tmp'),spawn=require('./spawn-sync');vargraceful=spawn.arg;if(graceful){tmp.setGracefulCleanup();}try{varresult=spawn.tmpFunction();spawn.out(result.name,function(){thrownewError('Thrown on purpose');});}catch(e){spawn.err(e,spawn.exit);}