Open Bug 1818457 Opened 2 years ago

Consider generating a method to check whether a unions is initialized

Categories

(Core :: DOM: Bindings (WebIDL), task, P3)

task

Tracking

()

People

(Reporter: edgar, Unassigned)

Details

One use case is https://searchfox.org/mozilla-central/rev/75da1dd5d4b9b991f919a41594194eab93cdef62/dom/events/ClipboardItem.cpp#24-27 where uses OwningStringOrBlob. It would be handy if there is a method that returns whether a union is initialized.

You need to log in before you can comment on or make changes to this bug.