You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
304 B

function write() {
try {
process.stdout.write('Hello, world\n');
} catch (ex) {
throw new Error('this should never happen');
}
setImmediate(function() {
write();
});
}
process.stdout.on('error', function(er) {
console.error(JSON.stringify(er));
process.exit(42);
});
write();