Bug 16729 - Make endings an enum
Make endings an enum
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: File API
unspecified
PC All
: P2 normal
: ---
Assigned To: Arun
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-13 12:50 UTC by Simon Pieters
Modified: 2012-05-07 05:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.