- From: Darin Adler <darin@apple.com>
- Date: Wed, 16 May 2007 17:35:04 -0700
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