[Webkit-unassigned] [Bug 72010] Add new API for Vibration API spec.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 8 20:49:31 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=72010
--- Comment #47 from Kentaro Hara <haraken at chromium.org> 2012-02-08 20:49:29 PST ---
(In reply to comment #46)
> (In reply to comment #45)
> > > It seems that this is written as custom code due to method overloading. It might require non-trivial change in code generators to support overloading.
> >
> > Don't we already support overloading?
>
> If I am understanding it correctly, we just supported overloading for methods whose argument counts are different (by [Optional]). We do not yet support overloading for methods whose argument types are different.
>
> Supported:
> foo(int a)
> foo(int a, int b)
>
> Not supported:
> foo(int a)
> foo(DOMString b)
Sorry, this observation was wrong. As Adam mentioned, code generators have already supported method overloading. (e.g. drawImage() in CanvasRenderingContext2D.idl)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list