Closed Bug 804319 Opened 8 years ago Closed 8 years ago

Implement parsing of "stringifier;"

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

http://dev.w3.org/2006/webapi/WebIDL/#idl-stringifiers says:

  As a shorthand, if the stringifier keyword is declared using an operation with
  no identifier, then the operation’s return type and argument list can be
  omitted.

And gives this example:

  stringifier;
Whiteboard: [need review]
Comment on attachment 673999 [details] [diff] [review]
Implement parsing of the "stringifier;" shorthand.

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

Please add a parser test for this.  Test at least that 'stringifier;' works, that two 'stringifier;'s don't, and that a 'stringifier;' and a 'stringifier whatever();' don't work.
Attachment #673999 - Flags: review?(khuey) → review+
> and that a 'stringifier;' and a 'stringifier whatever();' don't work.

Nice catch.  That's not being prevented.  Will add that.
https://hg.mozilla.org/integration/mozilla-inbound/rev/287f8cf1f1e1
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla19
https://hg.mozilla.org/mozilla-central/rev/287f8cf1f1e1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.