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/23_request.js | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'ext/fetch/23_request.js') diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js index 0f763234a..8ca92ca72 100644 --- a/ext/fetch/23_request.js +++ b/ext/fetch/23_request.js @@ -9,6 +9,20 @@ /// /// +import { primordials } from "ext:core/mod.js"; +const { + ArrayPrototypeMap, + ArrayPrototypeSlice, + ArrayPrototypeSplice, + ObjectKeys, + ObjectPrototypeIsPrototypeOf, + RegExpPrototypeExec, + StringPrototypeStartsWith, + Symbol, + SymbolFor, + TypeError, +} = primordials; + import * as webidl from "ext:deno_webidl/00_webidl.js"; import { assert } from "ext:deno_web/00_infra.js"; import { createFilteredInspectProxy } from "ext:deno_console/01_console.js"; @@ -30,19 +44,6 @@ import { } from "ext:deno_fetch/20_headers.js"; import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js"; import * as abortSignal from "ext:deno_web/03_abort_signal.js"; -import { primordials } from "ext:core/mod.js"; -const { - ArrayPrototypeMap, - ArrayPrototypeSlice, - ArrayPrototypeSplice, - ObjectKeys, - ObjectPrototypeIsPrototypeOf, - RegExpPrototypeExec, - StringPrototypeStartsWith, - Symbol, - SymbolFor, - TypeError, -} = primordials; const _request = Symbol("request"); const _headers = Symbol("headers"); -- cgit v1.2.3