Closed Bug 809260 Opened 13 years ago Closed 13 years ago

Example codegen doesn't have #include for ErrorResult

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: mccr8, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

If you use the example codegen on this webidl: interface Simple { [Throws] attribute boolean field; }; ...then the resulting file complains about "error: unknown type name 'ErrorResult'" unless you add #include "mozilla/ErrorResult.h" to the list of includes at the top of the header file.
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Comment on attachment 679058 [details] [diff] [review] Example codegen should include ErrorResult.h in the header. Review of attachment 679058 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Attachment #679058 - Flags: review?(continuation) → review+
Flags: in-testsuite?
Whiteboard: [need review]
Target Milestone: --- → mozilla19
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
We don't actually have tests for this yet... The test IDL doesn't check that the result compiles, sadly. Or rather it compiles both with and without the rest of the patch.
Flags: in-testsuite+ → in-testsuite?
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: