Closed Bug 1330698 Opened 4 years ago Closed 4 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 firstname.lastname@example.org: 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.