Skip to content

Commit c14b6dc

Browse files
authored
Adjust webaudio shortname in events patch (#1389)
Also adjust the patch itself as the `error` event now uses the right syntax and no longer uses the `ErrorEvent` interface in any case.
1 parent 4a4dad5 commit c14b6dc

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

tools/amend-event-data.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,7 @@ const patches = {
432432
change: { targets: ['XMLHttpRequest', 'XMLHttpRequestUpload'] }
433433
}
434434
],
435-
'webaudio': [
436-
{
437-
pattern: { type: 'update' },
438-
matched: 1,
439-
change: { interface: 'AudioRenderCapacityEvent' }
440-
},
435+
'webaudio-1.1': [
441436
{
442437
pattern: { type: 'ended' },
443438
matched: 1,
@@ -447,13 +442,6 @@ const patches = {
447442
pattern: { type: 'audioprocess' },
448443
matched: 1,
449444
change: { interface: 'AudioProcessingEvent' }
450-
},
451-
{
452-
// https://github.com/WebAudio/web-audio-api/issues/2591
453-
// https://github.com/WebAudio/web-audio-api/issues/2590
454-
pattern: { type: 'error' },
455-
matched: 1,
456-
change: { interface: 'ErrorEvent' }
457445
}
458446
],
459447
'webcodecs': [

0 commit comments

Comments
 (0)