See Web IDL spec, 4.3.5 "Operations": http://www.w3.org/TR/WebIDL/#es-operations Essentially, functions should throw a TypeError if called with too few arguments. This behavior is implemented by Gecko and Opera.
Created attachment 57649 [details] Proposed patch First stab at a patch.
Comment on attachment 57649 [details] Proposed patch We have made a conscious decision not throw for two few arguments and we should a much larger discussion if we want to change that behavior. It is very likely that this will break a lot of webkit specific code paths on web. r-
(In reply to comment #2) > (From update of attachment 57649 [details]) > We have made a conscious decision not throw for two few arguments and we should a much larger discussion if we want to change that behavior. I see. Where can I find the original discussion about this?
*** This bug has been marked as a duplicate of bug 21257 ***