Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestMIDIAccess will raise "InvalidSecurityError" #78

Closed

Conversation

toyoshim
Copy link
Contributor

Underlying systems may raise an error on initialization.
JavaScript should be able to catch the error.

(To close issue #77)

Underlying systems may raise an error on initialization.
JavaScript should be able to catch the error.
@marcoscaceres
Copy link
Contributor

If requestMIDIAccess() is used with a promise, then the promises' error resolver(?) should be invoked with the error instead (i.e., an exception should not be thrown).

@toyoshim
Copy link
Contributor Author

Oh, yes. My description was bad. It contained confusing keywords, "raise" and "catch"...
Actually, Chrome invokes promises' error resolver with "InvalidSecurityError".

@cwilso
Copy link
Contributor

cwilso commented Oct 15, 2013

I'm not going to hack in the pull request (it won't auto-merge), but I put this into the latest version I'm about to check in.

@cwilso cwilso closed this Oct 15, 2013
cwilso added a commit that referenced this pull request Oct 15, 2013
@toyoshim toyoshim deleted the request_invalid_state_error branch October 21, 2014 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants