1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix(ext/net): make node:http2 work with DENO_FUTURE=1 (#24144)

This commit is contained in:
Bartek Iwańczuk 2024-06-09 00:54:26 +01:00 committed by Nathan Whitaker
parent 81a05e837b
commit f60bf84722
No known key found for this signature in database

View file

@ -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);
});