Empty string as default dictionary member in WebIDL causes compilation to fail.

RESOLVED FIXED in mozilla17

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: wchen, Assigned: wchen)

Tracking

unspecified
mozilla17
x86
Mac OS X
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
dictionary NotificationOptions {
  DOMString lang = "";
};

Generates in the bindings:

static const PRUnichar data[] = { , 0 };

This causes compilation to fail.
(Assignee)

Comment 1

5 years ago
Created attachment 648024 [details] [diff] [review]
Fix generated code for empty string as default dictionary member in WebIDL.
Attachment #648024 - Flags: review?(khuey)
(Assignee)

Updated

5 years ago
Summary: Empty string as default dictionary member causes compilation to fail. → Empty string as default dictionary member in WebIDL causes compilation to fail.
Attachment #648024 - Flags: review?(khuey) → review+
(Assignee)

Updated

5 years ago
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/71531b2ece95
Flags: in-testsuite-
Keywords: checkin-needed
Blocks: 771636
https://hg.mozilla.org/mozilla-central/rev/71531b2ece95
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.