<div class="gmail_quote">On Wed, Aug 12, 2009 at 4:26 PM, Cameron McCormack <span dir="ltr"><<a href="mailto:cam@mcc.id.au">cam@mcc.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Boris Zbarsky:<br>
<div class="im">> Given the actual example code (and not its description, which<br>
> doesn't match the code), the relevant section is<br>
> <a href="http://dev.w3.org/2006/webapi/WebIDL/#es-operations" target="_blank">http://dev.w3.org/2006/webapi/WebIDL/#es-operations</a> steps 1 through<br>
> 3 in the third bullet point.<br>
><br>
> It looks to me like per the current spec text that will throw a<br>
> TypeError for the above call, unless the second argument to setItem<br>
> is marked [optional].<br>
<br>
</div>Yeah I think that’s right. I’ll just note though that behaviour when<br>
passing too many or too few arguments is still an open issue (although<br>
it’s more likely that the ‘too many’ case will change than the ‘too few’<br>
case).<br>
<br>
OTOH, passing in undefined explicitly as the second argument would have<br>
it converted to the string "undefined".</blockquote><div><br></div><div>Thanks for the clarification. I'll file a bug on WebKit.</div></div>