From eae9d5b647b89e547b4229b8b794d91753c9ec95 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 12 Aug 2021 19:16:23 +0200 Subject: fix: Blob#slice arguments should be optional (#11665) --- ext/web/09_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/web/09_file.js') 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) { -- cgit v1.2.3