Files
Paul Adenot 15e65f9002 Bug 2068066 - Return null from *List.item() in Web Speech when the index is out of range. r=media-playback-reviewers,webidl,smaug,alwu
item() indexed straight into the array, so an out-of-range index crashed.
Blink's item() returns nullptr there and its bindings hand that to JS as
null, so make the WebIDL return type nullable and do the same.

https://github.com/WebAudio/web-speech-api/pull/212 aligns the spec.

Differential Revision: https://phabricator.services.mozilla.com/D324284
2026-09-09 11:23:30 +00:00
..
…