News for hackers. Stuff that matters.
Re:What Kind of Asynchronous Is Right for You? by hinkley on Sunday June 18, 2023 @08:09AM (#36379479)
I had a logic bug in some new code this week and was reminded that in JavaScript, if you emit an Error and there are no handlers, it bubbles back up to the emitter as an exception.

Someone’s notion that they didn’t want errors to go unhandled. So I had to rewrite the logic so the conditional for reporting the error was inside the listener instead of around it.

There are no comments on this comment yet.