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:
parent
585ba28d47
commit
3f3bb6a829
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue