Closed Bug 785459 Opened 8 years ago Closed 8 years ago

Enable the WebIDL parser to be used stand-alone for syntax checking

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ehsan, Assigned: ehsan)

Details

Attachments

(1 file)

No description provided.
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #655080 - Flags: review?(khuey)
Comment on attachment 655080 [details] [diff] [review]
Patch (v1)

Review of attachment 655080 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/bindings/parser/WebIDL.py
@@ +3679,5 @@
> +            if options.verbose_errors:
> +                traceback.print_exc()
> +            else:
> +                print e
> +    parser.finish()

parser.finish() can throw too, say if you referenced an interface somewhere that was never defined.
Attachment #655080 - Flags: review?(khuey) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/1bdc56a180bc
Target Milestone: --- → mozilla17
Pushed a follow-up for python 2.5 compatibility:

https://hg.mozilla.org/integration/mozilla-inbound/rev/f56f3d3f2c12
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.