W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

[Bug 20508] New: "If successCallback is not callable, abort these steps."

From: <bugzilla@jessica.w3.org>
Date: Mon, 24 Dec 2012 08:21:07 +0000
To: public-audio@w3.org
Message-ID: <bug-20508-5429@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20508

            Bug ID: 20508
           Summary: "If successCallback is not callable, abort these
                    steps."
    Classification: Unclassified
           Product: AudioWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: MIDI API
          Assignee: dave.null@w3.org
          Reporter: w3c@marcosc.com
        QA Contact: public-audio@w3.org

In 5.1.1. Methods, step 3 of requestMIDIAccess(), contradicts WebIDL. Section
4.2.21. "Callback function types", of WebIDL says:

"If V is not a Function object, then throw a TypeError."

So step 3 will never be reached: and TypeError will have been thrown already.

Given the above (i.e., WebIDL doing the error handling), I wonder if step 4
"Return, and run the following steps asynchronously" should be moved to step 1.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 24 December 2012 08:21:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:04 UTC