From 515a34b4de222e35c7ade1b92614d746e73d4c2e Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Thu, 11 Jan 2024 07:37:25 +0900 Subject: refactor: use `core.ensureFastOps()` (#21888) --- ext/fetch/22_http_client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ext/fetch/22_http_client.js') diff --git a/ext/fetch/22_http_client.js b/ext/fetch/22_http_client.js index dd5b99bfe..b6945e674 100644 --- a/ext/fetch/22_http_client.js +++ b/ext/fetch/22_http_client.js @@ -11,8 +11,11 @@ /// import { core } from "ext:core/mod.js"; -const ops = core.ops; + import { SymbolDispose } from "ext:deno_web/00_infra.js"; +const { + op_fetch_custom_client, +} = core.ensureFastOps(); /** * @param {Deno.CreateHttpClientOptions} options @@ -21,7 +24,7 @@ import { SymbolDispose } from "ext:deno_web/00_infra.js"; function createHttpClient(options) { options.caCerts ??= []; return new HttpClient( - ops.op_fetch_custom_client( + op_fetch_custom_client( options, ), ); -- cgit v1.2.3