From 52be4925bc3094d4e253649f0bf81dc520a9f390 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Wed, 24 Jul 2024 17:34:42 +1200 Subject: [PATCH] WebAudio: Avoid throwing exception for stubbed setValueAtTime Instead, just log an error and continue on gracefully, returning an instance of ourselves as spec'd. --- Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp b/Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp index 5a8f0eaabd7a..d21826a5ed30 100644 --- a/Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp +++ b/Userland/Libraries/LibWeb/WebAudio/AudioParam.cpp @@ -82,7 +82,8 @@ WebIDL::ExceptionOr> 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 { *this }; } // https://webaudio.github.io/web-audio-api/#dom-audioparam-linearramptovalueattime