Bug 267533

Summary: Distinguish between Callback and Dict in IDL
Product: WebKit Reporter: Keith Cirkel <webkit>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: lwarlow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
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
Note You need to log in before you can comment on or make changes to this bug.