From 7abd72a80f0aafe071ad7d298b48e0da741cc9f3 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 19 Feb 2024 01:27:06 +1100 Subject: BREAKING(unstable): remove `Deno.HttpClient.rid` (#22075) As part of ongoing works to make `rid` private. --------- Co-authored-by: Matt Mastracci --- ext/fetch/23_request.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/fetch/23_request.js') diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js index 8ca92ca72..542bcb8bb 100644 --- a/ext/fetch/23_request.js +++ b/ext/fetch/23_request.js @@ -9,7 +9,7 @@ /// /// -import { primordials } from "ext:core/mod.js"; +import { core, primordials } from "ext:core/mod.js"; const { ArrayPrototypeMap, ArrayPrototypeSlice, @@ -45,6 +45,8 @@ import { import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js"; import * as abortSignal from "ext:deno_web/03_abort_signal.js"; +const { internalRidSymbol } = core; + const _request = Symbol("request"); const _headers = Symbol("headers"); const _getHeaders = Symbol("get headers"); @@ -355,7 +357,7 @@ class Request { "Argument 2", ); } - request.clientRid = init.client?.rid ?? null; + request.clientRid = init.client?.[internalRidSymbol] ?? null; } // 28. -- cgit v1.2.3