mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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:
committed by
Tim Ledbetter
parent
9650a5ff33
commit
67976d041b
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user