diff options
Diffstat (limited to 'ext/web/11_blob_url.js')
-rw-r--r-- | ext/web/11_blob_url.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/web/11_blob_url.js b/ext/web/11_blob_url.js index cd9d0929e..9a705f391 100644 --- a/ext/web/11_blob_url.js +++ b/ext/web/11_blob_url.js @@ -14,6 +14,7 @@ ((window) => { const core = Deno.core; + const ops = core.ops; const webidl = window.__bootstrap.webidl; const { getParts } = window.__bootstrap.file; const { URL } = window.__bootstrap.url; @@ -30,8 +31,7 @@ prefix, }); - const url = core.opSync( - "op_blob_create_object_url", + const url = ops.op_blob_create_object_url( blob.type, getParts(blob), ); @@ -51,7 +51,7 @@ prefix, }); - core.opSync("op_blob_revoke_object_url", url); + ops.op_blob_revoke_object_url(url); } URL.createObjectURL = createObjectURL; |