You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea if this has been presented already and I know this isn't really a major problem.
But I was curious as to why it's fixed in other languages (e.g. present in py2 but fixed in py3) but not in NodeJS.
Activity
bnoordhuis commentedon Jun 1, 2022
console.log()is not allowed to throw errors, at least not runtime errors: https://console.spec.whatwg.org/#printerIf you use
process.stdout.write(), you receive an error. Of course it's then up to you to handle it:Hope that answers your question.
Aside about https://github.com/sunfishcode/hello-world-vs-io-errors:
That's opinion asserted as fact. I hate it when people do that.