WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 267533
Distinguish between Callback and Dict in IDL
https://bugs.webkit.org/show_bug.cgi?id=267533
Summary
Distinguish between Callback and Dict in IDL
Keith Cirkel
Reported
2024-01-15 02:49:36 PST
Currently the IDL generator does not correctly generate code that distinguished between Callbacks & Dicts. Creating an IDL like `dictionary Foo {}; type (VoidCallback or Foo) MyUnion;` results in roughly `std::variant<VoidCallback, Foo>` but it will always hit the `Foo` variant when visited.
https://github.com/whatwg/webidl/pull/1353
has been merged so this should be rectified.
Attachments
Add attachment
proposed patch, testcase, etc.
Luke Warlow
Comment 1
2024-01-15 03:01:55 PST
https://github.com/WebKit/WebKit/compare/lukewarlow:callback-dictionary-union
the core of this change is implemented on this branch just needs tests.
Radar WebKit Bug Importer
Comment 2
2024-01-22 02:50:13 PST
<
rdar://problem/121363562
>
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