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 18420 - Cycles via dictionary members should probably be prohibited
Summary: Cycles via dictionary members should probably be prohibited
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 01:45 UTC by Boris Zbarsky
Modified: 2012-12-10 05:17 UTC (History)
2 users (show)

See Also:


Attachments

Description Boris Zbarsky 2012-07-27 01:45:13 UTC
Consider this IDL:

  dictionary Dict1 {
    Dict2 member;
  };
  dictionary Dict2 : Dict1 {
  };

or even simpler:

  dictionary Dict1 {
    Dict1 member;
  };

This should probably be disallowed, since there's no sane way to do it.
Comment 1 Cameron McCormack 2012-12-10 05:17:21 UTC
I've disallowed all direct and indirect references to the same dictionary:

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.576;r2=1.577;f=h