summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/fetch/26_fetch.js5
-rw-r--r--ext/node/polyfills/http.ts5
2 files changed, 8 insertions, 2 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js
index 154e2bcd3..7d9918e23 100644
--- a/ext/fetch/26_fetch.js
+++ b/ext/fetch/26_fetch.js
@@ -13,10 +13,13 @@
import { core, primordials } from "ext:core/mod.js";
const {
op_fetch,
- op_fetch_send,
op_wasm_streaming_feed,
op_wasm_streaming_set_url,
} = core.ensureFastOps();
+// TODO(bartlomieju): this ops is also used in `ext/node/polyfills/http.ts`.
+const {
+ op_fetch_send,
+} = core.ensureFastOps(true);
const {
ArrayPrototypePush,
ArrayPrototypeSplice,
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 9356dde0a..9654d3beb 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -6,9 +6,12 @@
import { core } from "ext:core/mod.js";
const {
op_fetch_response_upgrade,
- op_fetch_send,
op_node_http_request,
} = core.ensureFastOps();
+// TODO(bartlomieju): this ops is also used in `ext/fetch/26_fetch.js`.
+const {
+ op_fetch_send,
+} = core.ensureFastOps(true);
import { TextEncoder } from "ext:deno_web/08_text_encoding.js";
import { setTimeout } from "ext:deno_web/02_timers.js";