summaryrefslogtreecommitdiff
path: root/ext/web/11_blob_url.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-05-01 12:47:13 +0200
committerGitHub <noreply@github.com>2023-05-01 10:47:13 +0000
commitb31cf9fde6ad5398c20370c136695db77df6beeb (patch)
tree23ef5cd5d6e9342abefdc37332cc12d9bce3f245 /ext/web/11_blob_url.js
parentd856bfd336137e1bcf81a0db9e8ad2b418ba711e (diff)
refactor(webidl): move prefix & context out of converters options bag (#18931)
Diffstat (limited to 'ext/web/11_blob_url.js')
-rw-r--r--ext/web/11_blob_url.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/web/11_blob_url.js b/ext/web/11_blob_url.js
index 7c4adf4e9..3ac240d90 100644
--- a/ext/web/11_blob_url.js
+++ b/ext/web/11_blob_url.js
@@ -24,10 +24,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);
- blob = webidl.converters["Blob"](blob, {
- context: "Argument 1",
- prefix,
- });
+ blob = webidl.converters["Blob"](blob, prefix, "Argument 1");
return ops.op_blob_create_object_url(blob.type, getParts(blob));
}
@@ -39,10 +36,7 @@ function createObjectURL(blob) {
function revokeObjectURL(url) {
const prefix = "Failed to execute 'revokeObjectURL' on 'URL'";
webidl.requiredArguments(arguments.length, 1, prefix);
- url = webidl.converters["DOMString"](url, {
- context: "Argument 1",
- prefix,
- });
+ url = webidl.converters["DOMString"](url, prefix, "Argument 1");
ops.op_blob_revoke_object_url(url);
}