Skip to content

Commit

Permalink
WebAudio: Avoid throwing exception for stubbed setValueAtTime
Browse files Browse the repository at this point in the history
Instead, just log an error and continue on gracefully, returning an
instance of ourselves as spec'd.
  • Loading branch information
shannonbooth authored and awesomekling committed Jul 24, 2024
1 parent a51095f commit 52be492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<AudioParam>> AudioParam::set_value_at_time(
{
(void)value;
(void)start_time;
return WebIDL::NotSupportedError::create(realm(), "FIXME: Implement AudioParam::set_value_at_time"_fly_string);
dbgln("FIXME: Implement AudioParam::set_value_at_time");
return JS::NonnullGCPtr<AudioParam> { *this };
}

// https://webaudio.github.io/web-audio-api/#dom-audioparam-linearramptovalueattime
Expand Down

0 comments on commit 52be492

Please sign in to comment.