Hacker News new | ask | show | jobs
by kaffeinecoma 5264 days ago
Yes, but it would raise the exception at run-time, and only when the particular path is taken.
1 comments

There's actually no exception, it just returns "undefined" and the if statement fails. That's why it's such a deadly bug -- no exception, and path dependent. Combine that with the async nature of JS and it's going to be a long night tracking that one down