diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2021-08-16 12:53:30 +0200 |
---|---|---|
committer | Luca Casonato <lucacasonato@yahoo.com> | 2021-08-16 19:45:37 +0200 |
commit | 6ddabb742757e1031f04b896c6f319dd0dadbc73 (patch) | |
tree | 1e5d6305be5f8f55cf9cbd55bfdf9b368d502912 | |
parent | eea6f578fc0fe9488c9fbd6c2bcbf665fff92424 (diff) |
fix(ext/fetch): don't use global Deno object
Don't use `Deno.core`, it's not present in embedders that don't expose
the Deno global object.
-rw-r--r-- | ext/fetch/26_fetch.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js index f7166001e..2d7180691 100644 --- a/ext/fetch/26_fetch.js +++ b/ext/fetch/26_fetch.js @@ -523,15 +523,15 @@ while (true) { const { value: chunk, done } = await reader.read(); if (done) break; - Deno.core.wasmStreamingFeed(rid, "bytes", chunk); + core.wasmStreamingFeed(rid, "bytes", chunk); } } // 2.7. - Deno.core.wasmStreamingFeed(rid, "finish"); + core.wasmStreamingFeed(rid, "finish"); } catch (err) { // 2.8 and 3 - Deno.core.wasmStreamingFeed(rid, "abort", err); + core.wasmStreamingFeed(rid, "abort", err); } })(); } |