Skip to content

Comment on Search: .lenght - Githubparent

Comments

Yes, but it would raise the exception at run-time, and only when the particular path is taken.

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.