LibWeb/FileAPI: Add [Clamp] extended attribute to Blob.slice

See:
 - http://wpt.live/FileAPI/blob/Blob-slice-overflow.any.html
This commit is contained in:
Jamie Mansfield 2024-08-23 00:52:22 +01:00 committed by Tim Ledbetter
parent 9650a5ff33
commit 67976d041b
Notes: github-actions[bot] 2024-08-23 11:09:12 +00:00

View file

@ -9,7 +9,7 @@ interface Blob {
readonly attribute DOMString type;
// slice Blob into byte-ranged chunks
Blob slice(optional long long start, optional long long end, optional DOMString contentType);
Blob slice(optional [Clamp] long long start, optional [Clamp] long long end, optional DOMString contentType);
// read from the Blob.
[NewObject] ReadableStream stream();