From 2e793f24507fcbdc6700302ade85e1d293c65747 Mon Sep 17 00:00:00 2001 From: nikelborm Date: Wed, 10 Dec 2025 02:01:41 +0300 Subject: [PATCH] MIDI APIs now use NotAllowedError instead of InvalidAccessError The change in spec: https://github.com/WebAudio/web-midi-api/commit/3795f22 According PR: https://github.com/WebAudio/web-midi-api/pull/278 --- files/en-us/web/api/midioutput/send/index.md | 2 +- files/en-us/web/api/midiport/open/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/midioutput/send/index.md b/files/en-us/web/api/midioutput/send/index.md index 4bbac4df5de7f04..c8fed95bea76546 100644 --- a/files/en-us/web/api/midioutput/send/index.md +++ b/files/en-us/web/api/midioutput/send/index.md @@ -32,7 +32,7 @@ None ({{jsxref("undefined")}}). - {{jsxref("TypeError")}} - : Thrown if `data` is not a valid sequence, or does not contain a valid MIDI message. -- `InvalidAccessError` {{domxref("DOMException")}} +- `NotAllowedError` {{domxref("DOMException")}} - : Thrown if `data` is a system exclusive message, and the {{domxref("MIDIAccess")}} did not enable exclusive access. - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if the port is disconnected. diff --git a/files/en-us/web/api/midiport/open/index.md b/files/en-us/web/api/midiport/open/index.md index 7a1e3a25392da84..79f09e4b576cb20 100644 --- a/files/en-us/web/api/midiport/open/index.md +++ b/files/en-us/web/api/midiport/open/index.md @@ -30,7 +30,7 @@ A {{jsxref("Promise")}} which resolves once access to the port has been successf ### Exceptions -- `InvalidAccessError` {{domxref("DOMException")}} +- `NotAllowedError` {{domxref("DOMException")}} - : The promise is rejected with this error if the port is unavailable and cannot be opened. ## Examples