W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

Re: [WebIDL] Constructor with too many arguments throws TypeError?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 14 Jun 2014 22:51:39 -0400
Message-ID: <539D0A3B.3070705@mit.edu>
To: public-script-coord@w3.org
On 6/14/14, 1:49 PM, Dirk Schulze wrote:
> If I have a constructor that takes 4 arguments. If I pass 5 arguments, will it throw a TypeError exception?

Per current WebIDL spec, no.

> I am asking because the general behavior is not interoperable across browsers today.

I find that a bit surprising.  Which browser throws on _extra_ (as 
opposed to missing) arguments?

Received on Sunday, 15 June 2014 02:52:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC