Closed Bug 1063889 Opened 10 years ago Closed 10 years ago

Web IDL codegen messes up union members that are sequences of a wrapper type

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

This happens because we use str() in both getUnionMemberName and the typeName() method in IDLUnionType.complete, but for a sequence of wrappers that ends up with something like "Node (Wrapper)Sequence". Which is not helpful.
Blocks: 1053033
I wish we had some sort of principled thing here... .name seems closest. __str__ is certainly not it.
Attachment #8485367 - Flags: review?(khuey)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
https://hg.mozilla.org/integration/mozilla-inbound/rev/2f5df573f4a3 Fabrice, let me know if we need this on branches, ok?
Target Milestone: --- → mozilla35
And backed out because windowsx.h exists. Will reland after a try run on Windows debug.
(In reply to Boris Zbarsky [:bz] from comment #2) > https://hg.mozilla.org/integration/mozilla-inbound/rev/2f5df573f4a3 > > Fabrice, let me know if we need this on branches, ok? We don't! thanks for the quick fix!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: