1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 16:49:18 -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 GitHub
parent 585ba28d47
commit 3f3bb6a829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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