Closed Bug 1330698 Opened 5 years ago Closed 5 years ago
IDL bindings should support Constructor(optional (USVString or something) foo = "")
No description provided.
This is actually only a problem with a string literal default value for a union-type argument containing USVString. If the argument type is USVString we coerce the literal to be DOMString-typed, so there is no problem. But in the union case we have to give the literal the type of the thing it matched inside the union, which is what causes the issue.
Summary: WebIDL bindings should support Constructor(optional USVString foo = "") → WebIDL bindings should support Constructor(optional (USVString or something) foo = "")
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8826259 - Flags: review?(kyle) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b75e432a3b77 Support string default values for unions containing USVString. r=qdot
You need to log in before you can comment on or make changes to this bug.