W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

[Bug 16729] New: Make endings an enum

From: <bugzilla@jessica.w3.org>
Date: Fri, 13 Apr 2012 12:50:32 +0000
To: public-webapps@w3.org
Message-ID: <bug-16729-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16729

           Summary: Make endings an enum
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: File API
        AssignedTo: arun@mozilla.com
        ReportedBy: simonp@opera.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: public-webapps@w3.org


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";

    };

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 13 April 2012 12:50:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:51 GMT