From 3f3bb6a829d61b2c12c3c63b8f8c7e5f929e3587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 9 Jun 2024 00:54:26 +0100 Subject: fix(ext/net): make node:http2 work with DENO_FUTURE=1 (#24144) --- ext/node/polyfills/http2.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/node/polyfills') diff --git a/ext/node/polyfills/http2.ts b/ext/node/polyfills/http2.ts index efd71ff93..7a9d91097 100644 --- a/ext/node/polyfills/http2.ts +++ b/ext/node/polyfills/http2.ts @@ -5,6 +5,7 @@ // deno-lint-ignore-file prefer-primordials import { core, primordials } from "ext:core/mod.js"; +const { internalRidSymbol } = core; import { op_http2_client_get_response, op_http2_client_get_response_body_chunk, @@ -405,7 +406,7 @@ export class ClientHttp2Session extends Http2Session { const connPromise = new Promise((resolve) => { const eventName = url.startsWith("https") ? "secureConnect" : "connect"; socket.once(eventName, () => { - const rid = socket[kHandle][kStreamBaseField].rid; + const rid = socket[kHandle][kStreamBaseField][internalRidSymbol]; nextTick(() => { resolve(rid); }); -- cgit v1.2.3