shichuan/javascript-patterns — pull request #45 by gzproger (2012-02-16 21:16:38+00:00)
Title: Does javascript require us to swallow errors?

I see all my colleagues are doing extactly the same as here - check parameters and swallow cosuming developers' errors. I wonder is this a typical javascript way to check parameters? These error swallowing code makes my life very tough, things either works fine or fails sliently.

Shouldn't the code throw execption when pamarater checking fail?