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 16729 - Make endings an enum
Summary: Make endings an enum
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: File API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Arun
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 12:50 UTC by Simon Pieters
Modified: 2012-05-07 05:05 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Pieters 2012-04-13 12:50:32 UTC
I think it would make sense to make the endings member an enum as follows, to make invalid values throw TypeError:

    enum EndingTypes { "transparent", "native" };
    dictionary BlobPropertyBag {

      ...
      EndingTypes endings = "transparent";
	
    };
Comment 1 Simon Pieters 2012-04-13 13:06:23 UTC
s/EndingTypes/EndingType/
Comment 2 Arun 2012-05-07 05:05:40 UTC
Marking this fixed.