[whatwg] several messages
Darin Adler
darin at apple.com
Wed May 16 17:35:04 PDT 2007
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
More information about the whatwg
mailing list