Skip to content

Commit

Permalink
WebAudio: Avoid throwing exception for stubbed AudioNode.connect
Browse files Browse the repository at this point in the history
This stubs out enough to get https://athenacrisis.com/ far enough to
actually load :^)
  • Loading branch information
shannonbooth authored and awesomekling committed Jul 24, 2024
1 parent 52be492 commit 52ccd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Userland/Libraries/LibWeb/WebAudio/AudioNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52ccd69

Please sign in to comment.