feat(speech): expose synthesis event interface shells

This commit is contained in:
ldm0
2026-11-22 02:01:57 +08:00
parent a0cb803877
commit e83dbc57b6
2 changed files with 12 additions and 2 deletions
@@ -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,
+4 -2
View File
@@ -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;