1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix: Blob#slice arguments should be optional (#11665)

This commit is contained in:
Luca Casonato 2021-08-12 19:16:23 +02:00 committed by GitHub
parent 7d55e05486
commit eae9d5b647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -220,7 +220,7 @@
* @param {string} [contentType]
* @returns {Blob}
*/
slice(start, end, contentType) {
slice(start = undefined, end = undefined, contentType = undefined) {
webidl.assertBranded(this, Blob);
const prefix = "Failed to execute 'slice' on 'Blob'";
if (start !== undefined) {

View file

@ -16443,7 +16443,6 @@
"filereader_result.any.html": true
},
"idlharness.any.html": [
"Blob interface: operation slice(optional long long, optional long long, optional DOMString)",
"FileList interface: existence and properties of interface object",
"FileList interface object length",
"FileList interface object name",