Closed
Description
Using console
is potentially unsafe:
//index.js
var fs = require('fs')
process.on('uncaughtException', function (err) {
fs.writeFileSync('./uncaughtException.txt', err.stack)
})
setInterval(ping, 1000)
function ping () {
console.log('ping')
}
Then:
iojs index.js &
exit
Yields Error: This socket is closed.
This reminds me of old versions of IE where console
property was defined only when devtools were open.