Open Bug 1731879 Opened 4 years ago Updated 3 years ago

Generate better constructors for WebIDL unions

Categories

(Core :: DOM: Bindings (WebIDL), enhancement)

enhancement

Tracking

()

People

(Reporter: peterv, Unassigned)

Details

Ideally the constructor that leaves the union uninitialized would only be used from generated binding code. Other code would use constructors that take a value and initialize the union to that specific variant.

Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.