W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] several messages

From: Darin Adler <darin@apple.com>
Date: Wed, 16 May 2007 17:35:04 -0700
Message-ID: <1E9A71E9-8187-4BFC-9B3E-02DBB8F07FC7@apple.com>
On May 16, 2007, at 5:31 PM, Philip Taylor wrote:

> On 17/05/07, Ian Hickson <ian at hixie.ch> wrote:
>
>> I've changed the spec to say to ignore extra arguments and raise  
>> an exception for too few arguments.
>
> What happens when someone calls drawImage(image, dx, dy, dw)?  
> That's too few arguments for "void drawImage(in HTMLImageElement  
> image, in float dx, in float dy, in float dw, in float dh)", but  
> too many for "void drawImage(in HTMLImageElement image, in float  
> dx, in float dy)".

Typically in JavaScript, too few arguments just means that each  
additional argument is treated as undefined.

     -- Darin
Received on Wednesday, 16 May 2007 17:35:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC