[Bug 23532] Dealing with undefined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23532

--- Comment #31 from James Graham <james@hoppipolla.co.uk> ---
(In reply to Erik Arvidsson from comment #30)
> Also, whether WebIDL has a more useful behavior is debatable. I haven't seen
> many (any?) JS libraries follow WebIDL.

That data would also fit the hypothesis that argument validation is too hard to
do in JS and people are lazy so don't bother. Given that it is easy to make a
case that throwing is preferable for API users but no one has even attempted to
make a case, other than consistency, why not throwing might be preferable, I
think my alternative hypothesis is significantly more likely.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 24 October 2013 14:23:13 UTC