diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-06-09 00:54:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 01:54:26 +0200 |
commit | 3f3bb6a829d61b2c12c3c63b8f8c7e5f929e3587 (patch) | |
tree | 56062a73521bb8923fc096570550fce701f1a4bc | |
parent | 585ba28d479ea1db20e80c318055c448cb13391b (diff) |
fix(ext/net): make node:http2 work with DENO_FUTURE=1 (#24144)
-rw-r--r-- | ext/node/polyfills/http2.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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); }); |