diff --git a/moli-renderer-v8/src/context_bootstrap/specs/registry.rs b/moli-renderer-v8/src/context_bootstrap/specs/registry.rs index ab09d81c52f..ef1a8217dc0 100644 --- a/moli-renderer-v8/src/context_bootstrap/specs/registry.rs +++ b/moli-renderer-v8/src/context_bootstrap/specs/registry.rs @@ -380,6 +380,14 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[ interface: web_api_interfaces::ReportingObserver::DESCRIPTOR, kind: ConstructorKind::Shell { length: 1 }, }, + ConstructorSpec { + interface: web_api_interfaces::SpeechSynthesisErrorEvent::DESCRIPTOR, + kind: ConstructorKind::Shell { length: 2 }, + }, + ConstructorSpec { + interface: web_api_interfaces::SpeechSynthesisEvent::DESCRIPTOR, + kind: ConstructorKind::Shell { length: 2 }, + }, ConstructorSpec { interface: web_api_interfaces::External::DESCRIPTOR, kind: ConstructorKind::Illegal, diff --git a/moli-webapi/src/interfaces.rs b/moli-webapi/src/interfaces.rs index 4f96d7d4e84..669189cebc6 100644 --- a/moli-webapi/src/interfaces.rs +++ b/moli-webapi/src/interfaces.rs @@ -99,6 +99,8 @@ interfaces! { PerformanceServerTiming; ReportBody; ReportingObserver; + SpeechSynthesisErrorEvent: SpeechSynthesisEvent; + SpeechSynthesisEvent: Event; AbortController; AbortSignal: EventTarget; AbstractRange; @@ -679,8 +681,8 @@ interfaces! { SharedWorker: EventTarget; SharedWorkerGlobalScope: WorkerGlobalScope; SpeechSynthesis: EventTarget; - SpeechSynthesisEvent: Event; - SpeechSynthesisErrorEvent: SpeechSynthesisEvent; + + SpeechSynthesisUtterance: EventTarget; SpeechSynthesisVoice; StaticRange: AbstractRange;