Skip to content

Commit

Permalink
no webidl
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Apr 6, 2021
1 parent f58bd55 commit 53a8024
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions op_crates/file/03_blob_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 53a8024

Please sign in to comment.