WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
163791
[Web IDL] Two types are distinguishable for overload resolution if at most one of the two includes a nullable type
https://bugs.webkit.org/show_bug.cgi?id=163791
Summary
[Web IDL] Two types are distinguishable for overload resolution if at most on...
Chris Dumez
Reported
2016-10-21 09:45:46 PDT
Fix bad operation overloads in our IDL files. As per Web IDL [1], two types are distinguishable if at most one of the two includes a nullable type. However, we have overloads in WebKit with more than one nullable type as distinguishing parameter. We need to fix this so that the bindings generator can generate more correct code. See following comment in AreTypesDistinguishableForOverloadResolution() in the bindings generator: # FIXME: The WebIDL mandates this but this currently does not work because some of our IDL is wrong. # return 0 if $idlTypeA->isNullable && $idlTypeB->isNullable; [1]
https://heycam.github.io/webidl/#dfn-distinguishable
Attachments
Patch
(6.52 KB, patch)
2016-10-21 10:40 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(10.25 KB, patch)
2016-10-22 21:10 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-10-21 10:40:31 PDT
Created
attachment 292370
[details]
Patch
Chris Dumez
Comment 2
2016-10-22 21:10:19 PDT
Created
attachment 292532
[details]
Patch
WebKit Commit Bot
Comment 3
2016-10-22 22:09:06 PDT
Comment on
attachment 292532
[details]
Patch Clearing flags on attachment: 292532 Committed
r207725
: <
http://trac.webkit.org/changeset/207725
>
WebKit Commit Bot
Comment 4
2016-10-22 22:09:11 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug