[Bug 25050] New: "throw an exception"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25050

            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

http://heycam.github.io/webidl/#Constructor

[[
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