New issue
Advanced search Search tips

Issue 682040 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Wrong error type when connecting an audio node to a node from a different context.

Project Member Reported by rtoy@chromium.org, Jan 17 2017

Issue description

OS: All

What steps will reproduce the problem?
(1) Run the following in a dev console (or something)
c0 = new AudioContext();
c1 = new AudioContext();
n = new OscillatorNode(c0);
try {
  n.connect(c1.destination);
} catch (e) {
  console.log(e.name);
}
(2)
(3)

What is the expected result?

e.name should be InvalidAccessError according to https://webaudio.github.io/web-audio-api/#widl-AudioNode-connect-AudioNode-AudioNode-destination-unsigned-long-output-unsigned-long-input

What happens instead?

Chrome throws a SyntaxError instead.


 

Comment 1 by rtoy@chromium.org, Jan 18 2017

Owner: rtoy@chromium.org
Status: Started (was: Available)

Comment 3 by rtoy@chromium.org, Jan 20 2017

Status: Fixed (was: Started)

Sign in to add a comment