Skip to content

Commit 71a0666

Browse files
authored
WebSpeech's SpeechRecognition onerror incorrectly reports ErrorEvent as event (#850)
* WebSpeech's SpeechRecognition onerror incorrectly reports ErrorEvent as event See: https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error * Make travisCI happy, accept baseline
1 parent b03850b commit 71a0666

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15060,7 +15060,7 @@ interface SpeechRecognitionEventMap {
1506015060
"audioend": Event;
1506115061
"audiostart": Event;
1506215062
"end": Event;
15063-
"error": Event;
15063+
"error": ErrorEvent;
1506415064
"nomatch": SpeechRecognitionEvent;
1506515065
"result": SpeechRecognitionEvent;
1506615066
"soundend": Event;
@@ -15079,7 +15079,7 @@ interface SpeechRecognition extends EventTarget {
1507915079
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
1508015080
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
1508115081
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
15082-
onerror: ((this: SpeechRecognition, ev: Event) => any) | null;
15082+
onerror: ((this: SpeechRecognition, ev: ErrorEvent) => any) | null;
1508315083
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
1508415084
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
1508515085
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;

inputfiles/addedTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@
10501050
},
10511051
{
10521052
"name": "error",
1053-
"type": "Event"
1053+
"type": "ErrorEvent"
10541054
},
10551055
{
10561056
"name": "end",

0 commit comments

Comments
 (0)