diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-30 19:22:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-30 19:22:24 +0100 |
commit | fa975a9baee4c7489ad743be72b97372b616453a (patch) | |
tree | e5ee1456bf653968366f988cd00ffccb754d77dd /runtime/js/99_main.js | |
parent | ef46bc88bd48371d10ef59c99c8c113632ea7d97 (diff) |
refactor: rewrite Blob implementation (#9309)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index e227c3eca..c3ca7b772 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -27,6 +27,7 @@ delete Object.prototype.__proto__; const streams = window.__bootstrap.streams; const fileReader = window.__bootstrap.fileReader; const webSocket = window.__bootstrap.webSocket; + const blob = window.__bootstrap.blob; const fetch = window.__bootstrap.fetch; const prompt = window.__bootstrap.prompt; const denoNs = window.__bootstrap.denoNs; @@ -197,7 +198,7 @@ delete Object.prototype.__proto__; // https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope const windowOrWorkerGlobalScope = { - Blob: util.nonEnumerable(fetch.Blob), + Blob: util.nonEnumerable(blob.Blob), ByteLengthQueuingStrategy: util.nonEnumerable( streams.ByteLengthQueuingStrategy, ), |