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

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

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Sun, 23 Dec 2012 21:31:54 +0000
To: "public-audio@w3.org" <public-audio@w3.org>
Message-ID: <0E7202844D0A47BB90C40F64B3B29947@gmail.com>
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
Received on Sunday, 23 December 2012 21:32:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:14 UTC