This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20508 - "If successCallback is not callable, abort these steps."
Summary: "If successCallback is not callable, abort these steps."
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: MIDI API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Wilson
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-24 08:21 UTC by Marcos Caceres
Modified: 2013-01-18 15:50 UTC (History)
2 users (show)

See Also:


Attachments

Description Marcos Caceres 2012-12-24 08:21:07 UTC
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.
Comment 2 Olivier Thereaux 2013-01-18 15:50:59 UTC
Batch-closing RESOLVED MIDI issues. Reminder: midi issues now tracked at https://github.com/WebAudio/web-midi-api/issues