[Web MIDI API] "If successCallback is not callable, abort these steps."

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. 


-- 
Marcos Caceres
http://datadriven.com.au

Received on Sunday, 23 December 2012 21:32:23 UTC