summaryrefslogtreecommitdiff
path: root/ext/web/09_file.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-08-12 19:16:23 +0200
committerGitHub <noreply@github.com>2021-08-12 19:16:23 +0200
commiteae9d5b647b89e547b4229b8b794d91753c9ec95 (patch)
tree45544503e96d909284d40ba271638bd4438f5e4f /ext/web/09_file.js
parent7d55e05486183fe3dbeccc7beaa46fa497f05e08 (diff)
fix: Blob#slice arguments should be optional (#11665)
Diffstat (limited to 'ext/web/09_file.js')
-rw-r--r--ext/web/09_file.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/09_file.js b/ext/web/09_file.js
index 516e80adf..43d9ffcb3 100644
--- a/ext/web/09_file.js
+++ b/ext/web/09_file.js
@@ -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) {