mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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:
parent
9650a5ff33
commit
67976d041b
Notes:
github-actions[bot]
2024-08-23 11:09:12 +00:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/67976d041b4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1164 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue