Skip to content

Commit

Permalink
fix(ext/net): make node:http2 work with DENO_FUTURE=1 (denoland#24144)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Jun 8, 2024
1 parent 585ba28 commit 3f3bb6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/node/polyfills/http2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit 3f3bb6a

Please sign in to comment.