summaryrefslogtreecommitdiff
path: root/ext/web/11_blob_url.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-12 21:58:57 +0200
committerGitHub <noreply@github.com>2023-04-12 19:58:57 +0000
commita3c5193a2e7d15bbfac390b220982561376e7322 (patch)
tree272620bdfec253f53ad9ddd787afa0139770e069 /ext/web/11_blob_url.js
parent9c255b2843b3446c7ac6592eb8e318972eb5f1f8 (diff)
refactor(ext/webidl): remove object from 'requiredArguments' (#18674)
This should produce a little less garbage and using an object here wasn't really required. --------- Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com> Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com>
Diffstat (limited to 'ext/web/11_blob_url.js')
-rw-r--r--ext/web/11_blob_url.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/11_blob_url.js b/ext/web/11_blob_url.js
index f7a91ec12..7c4adf4e9 100644
--- a/ext/web/11_blob_url.js
+++ b/ext/web/11_blob_url.js
@@ -23,7 +23,7 @@ import { URL } from "ext:deno_url/00_url.js";
*/
function createObjectURL(blob) {
const prefix = "Failed to execute 'createObjectURL' on 'URL'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
blob = webidl.converters["Blob"](blob, {
context: "Argument 1",
prefix,
@@ -38,7 +38,7 @@ function createObjectURL(blob) {
*/
function revokeObjectURL(url) {
const prefix = "Failed to execute 'revokeObjectURL' on 'URL'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
url = webidl.converters["DOMString"](url, {
context: "Argument 1",
prefix,