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

View File

@@ -9,7 +9,7 @@ interface Blob {
readonly attribute DOMString type; readonly attribute DOMString type;
// slice Blob into byte-ranged chunks // 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. // read from the Blob.
[NewObject] ReadableStream stream(); [NewObject] ReadableStream stream();