WebAudio: Avoid throwing exception for stubbed setValueAtTime

Instead, just log an error and continue on gracefully, returning an
instance of ourselves as spec'd.
This commit is contained in:
Shannon Booth 2024-07-24 17:34:42 +12:00 committed by Andreas Kling
parent a51095f705
commit 52be4925bc
Notes: github-actions[bot] 2024-07-24 09:15:43 +00:00

View file

@ -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