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

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