diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-08 01:23:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 01:23:26 +0200 |
commit | ee07ef2962e5fe52e5f40b7516cdd813109e6104 (patch) | |
tree | 15ce73d5f6a1546ef50e8eaf42f3979252bb8186 /op_crates/file/03_blob_url.js | |
parent | fd65e6de3dc1ff909a1419c3b8f0c76daf1a69ed (diff) |
chore: update deno_file to use deno_webidl (#10042)
This changes the custom input converters in deno_file to use deno_webidl
converters.
Diffstat (limited to 'op_crates/file/03_blob_url.js')
-rw-r--r-- | op_crates/file/03_blob_url.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/op_crates/file/03_blob_url.js b/op_crates/file/03_blob_url.js index 29019cd84..a3ec90433 100644 --- a/op_crates/file/03_blob_url.js +++ b/op_crates/file/03_blob_url.js @@ -15,7 +15,7 @@ ((window) => { const core = Deno.core; - // const webidl = window.__bootstrap.webidl; + const webidl = window.__bootstrap.webidl; const { _byteSequence } = window.__bootstrap.file; const { URL } = window.__bootstrap.url; @@ -24,12 +24,12 @@ * @returns {string} */ 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, - // }); + const prefix = "Failed to execute 'createObjectURL' on 'URL'"; + webidl.requiredArguments(arguments.length, 1, { prefix }); + blob = webidl.converters["Blob"](blob, { + context: "Argument 1", + prefix, + }); const url = core.jsonOpSync( "op_file_create_object_url", @@ -45,12 +45,12 @@ * @returns {void} */ 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, - // }); + const prefix = "Failed to execute 'revokeObjectURL' on 'URL'"; + webidl.requiredArguments(arguments.length, 1, { prefix }); + url = webidl.converters["DOMString"](url, { + context: "Argument 1", + prefix, + }); core.jsonOpSync( "op_file_revoke_object_url", |