This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26190 - Sequence and OpenEndedDictionary should be distinguishable
Summary: Sequence and OpenEndedDictionary should be distinguishable
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 27008
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-24 21:26 UTC by Ben Kelly
Modified: 2016-10-17 15:41 UTC (History)
5 users (show)

See Also:


Attachments

Description Ben Kelly 2014-06-24 21:26:08 UTC
Currently the fetch spec is proposing webidl that looks like:

  typedef (Headers or sequence<sequence<ByteString>> or OpenEndedDictionary<ByteString>) HeadersInit;

This is illegal at the moment, however, because Sequence and OpenEndedDictionary are not distinguishable.
Comment 1 Boris Zbarsky 2014-06-24 21:33:09 UTC
In particular, we should try to convert as sequence; if that fails due to non-iterable, then go on to OpenEndedDictionary (or dictionary, for that matter).
Comment 2 Tobie Langel 2016-10-17 15:41:44 UTC
Fixed by https://github.com/heycam/webidl/commit/1814384