WebAudio: Avoid throwing exception for stubbed AudioNode.connect

This stubs out enough to get https://athenacrisis.com/ far enough to
actually load :^)
This commit is contained in:
Shannon Booth 2024-07-24 17:35:52 +12:00 committed by Andreas Kling
parent 52be4925bc
commit 52ccd69e49
Notes: github-actions[bot] 2024-07-24 09:15:38 +00:00

View file

@ -24,10 +24,10 @@ AudioNode::~AudioNode() = default;
// https://webaudio.github.io/web-audio-api/#dom-audionode-connect
WebIDL::ExceptionOr<JS::NonnullGCPtr<AudioNode>> AudioNode::connect(JS::NonnullGCPtr<AudioNode> destination_node, WebIDL::UnsignedLong output, WebIDL::UnsignedLong input)
{
(void)destination_node;
(void)output;
(void)input;
return WebIDL::NotSupportedError::create(realm(), "FIXME: Implement AudioNode::connect (AudioNode)"_fly_string);
dbgln("FIXME: Implement AudioNode::connect (AudioNode)");
return destination_node;
}
// https://webaudio.github.io/web-audio-api/#dom-audionode-connect-destinationparam-output