W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 25050] New: "throw an exception"

From: <bugzilla@jessica.w3.org>
Date: Fri, 14 Mar 2014 07:36:35 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25050-3890@http.www.w3.org/Bugs/Public/>

            Bug ID: 25050
           Summary: "throw an exception"
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: nbarth+w3bugzilla@google.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


throw an exception

Could we clarify that this throws exceptions for invalid arguments
the same as *operations* (not *attributes*), if this is correct?

This came up in asking what happens if you pass an invalid value for
enumeration argument;
a constructor is a method (on the global object), hence presumably the same
behavior as operations (methods on interface objects): throw TypeError on
invalid value.

However, it's potentially ambiguous, as constructors set *attributes*,
and for attributes assigning an invalid value is *ignored*.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 14 March 2014 07:36:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC