DescriptionAdd overload support for non-wrapper type vs. primitive type
Currently the overload resolution algorithm cannot handle non-wrapper types,
notably Dictionary.
This is causing problems for Web Animations, as per below CL,
specifically for Dictionary vs. double.
This is a conservative change, adding basic support for overloading
non-wrapper vs. primitive types.
This is simple, requiring that definitions appear in a given order:
methods with non-wrapper type arguments before
methods with primitive type arguments.
This bug can't be fixed without completely rewriting the overload algorithm,
b/c currently it only processes one method at a time,
but actually needs to consider the full overload set all at once,
which is much, much more complicated.
(Alternatively we could add a !IsObject to all checks of primitive arguments,
but that's slow and unnecessary.)
Reference CL:
Web Animations API: Start implementation of timing input objects.
https://codereview.chromium.org/105273010/
BUG=293561
R=haraken
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165620
Patch Set 1 #Patch Set 2 : Fix comment #Patch Set 3 : Fix comment (reupload) #Patch Set 4 : Rebaseline IDB tests #
Messages
Total messages: 11 (0 generated)
|