summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/http2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/http2.ts')
-rw-r--r--ext/node/polyfills/http2.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/node/polyfills/http2.ts b/ext/node/polyfills/http2.ts
index f8698a803..43b6fe4f1 100644
--- a/ext/node/polyfills/http2.ts
+++ b/ext/node/polyfills/http2.ts
@@ -5,6 +5,18 @@
// deno-lint-ignore-file prefer-primordials
import { core } from "ext:core/mod.js";
+const {
+ op_http2_connect,
+ op_http2_client_get_response,
+ op_http2_client_get_response_body_chunk,
+ op_http2_client_get_response_trailers,
+ op_http2_client_request,
+ op_http2_client_reset_stream,
+ op_http2_client_send_data,
+ op_http2_client_send_trailers,
+ op_http2_poll_client_connection,
+} = core.ensureFastOps();
+
import { notImplemented, warnNotImplemented } from "ext:deno_node/_utils.ts";
import { EventEmitter } from "node:events";
import { Buffer } from "node:buffer";
@@ -43,18 +55,6 @@ import {
} from "ext:deno_node/internal/errors.ts";
import { _checkIsHttpToken } from "ext:deno_node/_http_common.ts";
-const {
- op_http2_connect,
- op_http2_client_get_response,
- op_http2_client_get_response_body_chunk,
- op_http2_client_get_response_trailers,
- op_http2_client_request,
- op_http2_client_reset_stream,
- op_http2_client_send_data,
- op_http2_client_send_trailers,
- op_http2_poll_client_connection,
-} = core.ensureFastOps();
-
const kSession = Symbol("session");
const kAlpnProtocol = Symbol("alpnProtocol");
const kAuthority = Symbol("authority");