Closed Bug 863898 Opened 11 years ago Closed 11 years ago

Add support for dictionary arguments to JS-implemented WebIDL

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: mccr8, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

"Comment 4 sounds like a bug in our js-implemented codegen for dictionaries: dictionary arguments are const structs, but dictionary return values can't be const because of the ToObject thing.  That said, I wonder why ToObject is not a const method... we should consider fixing that if we can."
Attached patch same test example as 863880 (deleted) — Splinter Review
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Depends on: 863880
Comment on attachment 739910 [details] [diff] [review]
Add support for dictionary arguments in JS-implemented WebIDL bindings.

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

::: dom/bindings/test/TestJSImplGen.webidl
@@ -327,5 @@
>    void passOptionalNullableObjectWithDefaultValue(optional object? arg = null);
>    object receiveObject();
>    object? receiveNullableObject();
>  
> -/* The rest of these are untested.

Thanks for looking at these and filing bugs!
Attachment #739910 - Flags: review?(continuation) → review+
Blocks: 850430
FYI, I included this patch in my try run, and it was all green.
  https://tbpl.mozilla.org/?tree=Try&rev=7ddb2c175154
https://hg.mozilla.org/integration/mozilla-inbound/rev/4f09599d049f
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla23
https://hg.mozilla.org/mozilla-central/rev/4f09599d049f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 866203
No longer depends on: 866203
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: